2020-08-20 00:02:37 +00:00
|
|
|
// ==UserScript==
|
2022-02-04 04:25:57 +00:00
|
|
|
// @name Remove Trending tab
|
|
|
|
// @version 7
|
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() {
|
2022-02-04 04:25:57 +00:00
|
|
|
var buttons = Array.from(document.querySelectorAll('[href="/feed/explore"], [href="/feed/trending"], [href="/channel/UCqVDpXKLmKeBU_yyt_QkItQ"]'));
|
2021-07-07 01:13:50 +00:00
|
|
|
|
|
|
|
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
|
|
|
});
|