Skip to content

Instantly share code, notes, and snippets.

View Joilence's full-sized avatar

jyang Joilence

  • Germany
View GitHub Profile
@rozboris
rozboris / yt-hide-shorts.user.js
Last active June 20, 2023 08:11
Hide Shorts on YouTube
// ==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==
@tshu-w
tshu-w / save_safari_tabs.scpt
Last active February 3, 2023 03:24
Save all safari tabs in a single file and reopen them with a double click.
-- 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