init: mep
This commit is contained in:
16
yt-no-shorts.js
Normal file
16
yt-no-shorts.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// ==UserScript==
|
||||
// @name Remove YT Shorts
|
||||
// @version 1.0.0
|
||||
// @description Removes YT Shorts
|
||||
// @author phga
|
||||
// @match *://*.youtube.com/*
|
||||
// @exclude *://*.youtube.com/subscribe_embed?*
|
||||
// ==/UserScript==
|
||||
const removeShorts = () => {
|
||||
const shorts = [...document.querySelectorAll('[is-shorts],.ytd-reel-shelf-renderer')];
|
||||
if (shorts.length > 0) {
|
||||
shorts.forEach(e => e.remove());
|
||||
}
|
||||
}
|
||||
|
||||
setInterval(removeShorts, 2000);
|
||||
Reference in New Issue
Block a user