summaryrefslogtreecommitdiff
path: root/home-manager/features/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
committertriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
commit31c316d19cd974bb81a5d6de62142ff24db1c78e (patch)
treecb941422c76cb8953830a8d58c8e14dca1a10319 /home-manager/features/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js
parent1c21018347aa277caba74e554cb8d1b1e7fc6bed (diff)
reorganized directory structure
Diffstat (limited to 'home-manager/features/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js')
-rw-r--r--home-manager/features/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/home-manager/features/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js b/home-manager/features/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js
new file mode 100644
index 0000000..383fec3
--- /dev/null
+++ b/home-manager/features/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js
@@ -0,0 +1,23 @@
+// ==UserScript==
+// @name YouTube Shorts Blocker
+// @namespace http://tampermonkey.net/
+// @version 0.1.2
+// @description Blocks the YouTube shorts from appearing.
+// @author Aiden Charles
+// @license MIT
+// @match https://www.youtube.com/*
+// @require https://code.jquery.com/jquery-3.4.1.slim.min.js
+// @grant none
+// ==/UserScript==
+
+(function() {
+ console.log("YouTube Shorts blocker script is running!");
+
+ setInterval(function() {
+ $("ytd-reel-shelf-renderer").hide();
+ $("a[title='Shorts']").hide();
+ $('a[href^="/shorts/"]').closest('ytd-video-renderer').hide();
+ $('span:contains("Shorts")').closest('#content.ytd-rich-section-renderer').hide();
+ }, 1000);
+})();
+