Last active
January 10, 2018 13:26
-
-
Save seangenabe/8df3e190392331229d68 to your computer and use it in GitHub Desktop.
YouTube stop playlist autoplay user script
This file contains hidden or 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 YouTube stop playlist autoplay | |
// @namespace http://gist.github.com/s4g6 | |
// @version 1.0 | |
// @match https://www.youtube.com/* | |
// @copyright MIT, Copyright (c) 2014 Sean Genabe <[email protected]> | |
// ==/UserScript== | |
// NB: This doesn't work right now. If anyone knows a fix, please contact me. | |
// If you have Greasemonkey or Tampermonkey installed, access the raw URL for the user script. You will be prompted to install the user script. | |
document.addEventListener('DOMContentLoaded', function() { | |
var autoplayButton = document.querySelector('.toggle-autoplay.yt-uix-button-toggled') | |
if (autoplayButton) { | |
autoplayButton.click() | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment