commit 440534919c8e92e8b94d1b43c28f6c68b37c4d6e Author: Dan Date: Fri May 29 09:47:07 2026 +0800 feat: added watch anime diff --git a/watch-anime.sh b/watch-anime.sh new file mode 100755 index 0000000..32b28c8 --- /dev/null +++ b/watch-anime.sh @@ -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