feat: added watch anime

This commit is contained in:
Dan 2026-05-29 09:47:07 +08:00
commit 440534919c

26
watch-anime.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
# Open DuckDuckGo browser and navigate to Crunchyroll
open -a "DuckDuckGo" "https://www.crunchyroll.com/crunchylists"
# Allow time for the browser to launch and the page to load
sleep 3
osascript <<'EOF'
tell application "DuckDuckGo"
activate
end tell
tell application "System Events"
tell process "DuckDuckGo"
-- Send Alt+2 (Mi Monitor)
key code 124 using option down
-- Wait 2 seconds
delay 2
-- Send Ctrl+F (Fn modifier is not supported by AppleScript)
keystroke " " using {command down, option down, control down}
end tell
end tell
EOF