diff options
Diffstat (limited to 'features/user/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js')
| -rw-r--r-- | features/user/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/features/user/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js b/features/user/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js deleted file mode 100644 index 383fec3..0000000 --- a/features/user/gui/apps/qutebrowser/scripts/yt-shorts-blocker.js +++ /dev/null @@ -1,23 +0,0 @@ -// ==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); -})(); - |
