From 440534919c8e92e8b94d1b43c28f6c68b37c4d6e Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 29 May 2026 09:47:07 +0800 Subject: [PATCH] feat: added watch anime --- watch-anime.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 watch-anime.sh 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