-
-
Save Yonezpt/51adf278a24488f75ff0 to your computer and use it in GitHub Desktop.
// ==UserScript== | |
// @version 1.0.2 | |
// @name Removes the autoplay up next feature | |
// @match *://www.youtube.com/* | |
// @run-at document-start | |
// @grant none | |
// @noframes | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
function removeAPUN() { | |
var autoplaybar = document.getElementsByClassName('autoplay-bar')[0]; | |
if (autoplaybar) { | |
autoplaybar.removeAttribute('class'); | |
document.getElementsByClassName('checkbox-on-off')[0].remove(); | |
} | |
} | |
window.addEventListener('readystatechange', removeAPUN, true); | |
window.addEventListener('spfdone', removeAPUN); | |
}()); |
Thank you, now i am calm from this annoying feature of yt!
Does not work....
This works a charm, thanks. I had a go at tailoring your script to also stop www.bbc.co.uk videos from autoplaying, but failed miserably. Mainly because I don't know what I'm doing! Any chance you could oblige? Thanks in advance if you can.
Could you update this for the new Youtube layout please?
Anyone is welcome to fork this one, or copy it into their script runner of choice.
https://gist.github.com/jeffmbellucci/8db3a8b27664dac6b8f9cf10b416b433
Jeff, your script doesn't seem to work in greasemonkey (copied the script).
I tried Greasemonkey and Tampermonkey and the script did not work for me. Mac OS Sierra 10.12.6, Firefox 55.
Thank you so very much. Worked perfectly.
Just found out I have a gist for this: https://gist.github.com/PintsizedSix40/6211833aba07a201919412e829297a2b
Just tested it and it works, if anyone needs it. It seems to work, despite being a few years old. I tried the other ones but they don't seem to work (maybe just firefox, idk). This just removes all the videos and the autoplay switch. There is still an open space there.
THANK YOU SO MUCH for this!!!
That "Up Next..." was just becoming so frickin annoying!!!