Skip to content

Instantly share code, notes, and snippets.

View Jakobimatrix's full-sized avatar
💤
while(42){(+[](){})();}

Jakob Wandel Jakobimatrix

💤
while(42){(+[](){})();}
View GitHub Profile
@Jakobimatrix
Jakobimatrix / disable_youtube_autoplay.js
Last active September 9, 2019 16:20 — forked from jeffmbellucci/disable_youtube_autoplay.js
Turn off/disable YouTube autoplay feature
// To run, install GreaseMonkey or TamperMonkey extension in your browser
// Copy this code into new user script, and enable
// !! If the toggle button is not been toggled automaticly:
// !! That means youtube changed for reasons the id of the toggle button again.
// !! In Chrome/Firefox: right-click the toggle button and choose "Inspect Element (Q)"
// !! You will find something like "<div id="TOGGLE_BUTTON_ID" class="toggle-button...."
// !! Copy whatever TOGGLE_BUTTON_ID is and replace down in "function disableAfterLoad()" the place holder named "TOGGLE_BUTTON_ID".
// !! Save script ctrl+S and reload youtube page.