Skip to content

Instantly share code, notes, and snippets.

View leoa9001's full-sized avatar

Leo Alcock leoa9001

View GitHub Profile
@leoa9001
leoa9001 / play_pause_youtube
Created December 31, 2022 17:37 — forked from willhoney7/play_pause_youtube
play/pause youtube via applescript
tell application "Google Chrome"
set found_video to false
set window_list to every window
repeat with the_window in window_list
if found_video is equal to true then
exit repeat
end if
set tab_list to every tab in the_window
repeat with the_tab in tab_list
if the title of the_tab contains "- YouTube" then