Last active
September 19, 2021 14:23
-
-
Save bessangel/865ea3cfd937fe78c5ca94c52d18b11d to your computer and use it in GitHub Desktop.
UserScript instagram controls
This file contains 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 controls | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.instagram.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let intl = setInterval(()=>{ | |
[...document.querySelectorAll('video')].forEach( | |
v=>{ | |
if(v.controls) return 0; | |
v.controls=true; | |
let p= v.parentElement.parentElement.parentElement.parentElement; | |
p.children[2].style.height='50%'; | |
p.children[1].style.height='50%'; | |
}) | |
}, 10000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment