Created
August 10, 2022 14:28
-
-
Save Viroide/152cbf0e5d54e08b2c33e9ff17094217 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Shortcut: shift option control f11 | |
// Menu: Mute Meet | |
// Description: Search the meet tab on the browser and mute it. | |
// Author: @viroide | |
// Twitter: @viroide | |
await applescript(` | |
tell application "Brave Browser" | |
activate | |
repeat with theWindow in windows | |
set i to 0 | |
repeat with theTab in tabs of theWindow | |
set i to i + 1 | |
if URL of theTab starts with "https://meet.google.com" then | |
set index of theWindow to 1 | |
set active tab index of theWindow to i | |
tell application "System Events" to keystroke "d" using command down | |
return | |
end if | |
end repeat | |
end repeat | |
end tell | |
`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment