Skip to content

Instantly share code, notes, and snippets.

@seangenabe
Last active January 10, 2018 13:26
Show Gist options
  • Save seangenabe/8df3e190392331229d68 to your computer and use it in GitHub Desktop.
Save seangenabe/8df3e190392331229d68 to your computer and use it in GitHub Desktop.
YouTube stop playlist autoplay user script
// ==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