flash.moe/public/userscripts/remove-trending-tab.user.js

19 lines
541 B
JavaScript
Raw Normal View History

2020-08-20 00:02:37 +00:00
// ==UserScript==
// @name Removed Trending tab
2021-07-07 01:13:50 +00:00
// @version 6
2020-08-20 00:02:37 +00:00
// @grant none
// @include https://www.youtube.com/*
// ==/UserScript==
2021-07-07 01:13:50 +00:00
window.addEventListener('load', function() {
var checkInterval = setInterval(function() {
var buttons = Array.from(document.querySelectorAll('[href="/feed/explore"], [href="/feed/trending"]'));
if(buttons.length) {
while(buttons.length)
buttons.pop().parentElement.remove();
2020-08-20 00:02:37 +00:00
clearInterval(checkInterval);
}
}, 100);
2021-07-07 01:13:50 +00:00
});