Created
March 2, 2021 12:47
-
-
Save bessangel/eb0e9f44c7cb5fd1aec613efde4c56b0 to your computer and use it in GitHub Desktop.
UserScript tiktok 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 tiktok controls | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.tiktok.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setInterval( ()=>{ | |
document.querySelectorAll('video').forEach( | |
v=>{ | |
v.controls=true; | |
v.playbackRate=2.5; | |
v.parentElement.children.forEach( | |
(e,i)=>{ if(i>0) e.style.height='50%' | |
}) | |
}) | |
},5000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment