Last active
May 18, 2017 01:32
-
-
Save vekvoid/32a82b45a62c47aab1bcf1deb5f67b3f to your computer and use it in GitHub Desktop.
Sowing controls on Instagram videos.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Instagram Video Controls | |
// @namespace https://github.com/vekvoid/ | |
// @version 1.0 | |
// @description try to take over the world! | |
// @author Vekvoid | |
// @match *://www.instagram.com/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.1.1.slim.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
$('body').on('DOMSubtreeModified', 'main > section > div > div:first-child', function() { | |
// Need to be optimized | |
$('video').attr({ controls: '', style: 'z-index: 3;' }); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment