Skip to content

Instantly share code, notes, and snippets.

@thchan384
thchan384 / dim-image-background.user.js
Last active May 4, 2025 20:15
Userscript to dim the background when viewing standalone images
// ==UserScript==
// @name Dim Image Background
// @namespace https://gist.github.com/thchan384
// @version 1.1
// @description Turn background to black when page contains a standalone image
// @author thchan384
// @match *://*/*
// @updateURL https://gist.github.com/thchan384/25ba9515064731823bbf223341706968/raw/dim-image-background.user.js
// @downloadURL https://gist.github.com/thchan384/25ba9515064731823bbf223341706968/raw/dim-image-background.user.js
// @run-at document-idle
@thchan384
thchan384 / OpenHideMyEmail.scpt
Created March 6, 2025 17:05
Applescript to open Hide My Email in Sequoia 15.3
set terminalCommand to "open 'x-apple.systempreferences:com.apple.systempreferences.AppleIDSettings'"
do shell script terminalCommand
delay 5
tell application "System Events"
tell application process "System Settings"
activate
tell splitter group 1 of group 1 of window 1
tell group 2 to tell group 1 to tell scroll area 1 to tell group 3
repeat until UI element 1 exists
delay 0