Skip to content

Instantly share code, notes, and snippets.

@PintsizedSix40
Forked from Yonezpt/YT RMV-AP-UN.user.js
Last active May 8, 2021 10:19
Show Gist options
  • Save PintsizedSix40/6211833aba07a201919412e829297a2b to your computer and use it in GitHub Desktop.
Save PintsizedSix40/6211833aba07a201919412e829297a2b to your computer and use it in GitHub Desktop.
Removes the up next feature
// ==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);
}());
@awdrifter
Copy link

Can you please update this for the new YouTube Up Next feature? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment