Skip to content

Instantly share code, notes, and snippets.

@bessangel
Created March 2, 2021 12:47
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/eb0e9f44c7cb5fd1aec613efde4c56b0 to your computer and use it in GitHub Desktop.
Save bessangel/eb0e9f44c7cb5fd1aec613efde4c56b0 to your computer and use it in GitHub Desktop.
UserScript tiktok controls
// ==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