init: mep

This commit is contained in:
phga
2026-04-17 11:39:29 +02:00
commit 961fd6b37d
6 changed files with 117 additions and 0 deletions

16
yt-no-shorts.js Normal file
View 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);