-
-
Save PintsizedSix40/6211833aba07a201919412e829297a2b to your computer and use it in GitHub Desktop.
Removes the up next feature
This file contains 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== | |
// @version 1.0.0 | |
// @name Removes the up next feature | |
// @match *://www.youtube.com/* | |
// @run-at document-start | |
// @grant none | |
// @noframes | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
function removeAPUN() { | |
var autoplaybar = document.getElementById('related').remove(); | |
var autoplaybar2 = document.getElementsByClass('html5-endscreen ytp-player-content videowall-endscreen ytp-endscreen-paginate ytp-show-tiles')[0].remove(); | |
} | |
window.addEventListener('readystatechange', removeAPUN, true); | |
window.addEventListener('spfdone', removeAPUN); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you please update this for the new YouTube Up Next feature? Thanks.