Skip to content

Instantly share code, notes, and snippets.

@bessangel
Last active September 19, 2021 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessangel/865ea3cfd937fe78c5ca94c52d18b11d to your computer and use it in GitHub Desktop.
Save bessangel/865ea3cfd937fe78c5ca94c52d18b11d to your computer and use it in GitHub Desktop.
UserScript instagram controls
// ==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