This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Detect if the Safari window exists | |
tell application "System Events" | |
if not (exists (front window of process "Safari")) then | |
return | |
end if | |
end tell | |
-- Assume the frontmost Finder window (or the Desktop) | |
-- is where we want to store the script. | |
try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide Shorts on YouTube | |
// @version 4 | |
// @description Hides vides with #shorts tag or the ones shorter than 1 minute on Youtube Subscriptions and Home page | |
// @author rozboris | |
// @include https://*.youtube.com/* | |
// @include https://youtube.com/* | |
// @grant GM_addStyle | |
// @updateURL https://gist.githubusercontent.com/rozboris/f0a4fcd087fe23c198a37c0654af1afc/raw/yt-hide-shorts.user.js | |
// ==/UserScript== |