Skip to content

Instantly share code, notes, and snippets.

@Viroide
Created August 10, 2022 14:28
Show Gist options
  • Save Viroide/152cbf0e5d54e08b2c33e9ff17094217 to your computer and use it in GitHub Desktop.
Save Viroide/152cbf0e5d54e08b2c33e9ff17094217 to your computer and use it in GitHub Desktop.
// 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