Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am khrice on github.
  • I am khrice (https://keybase.io/khrice) on keybase.
  • I have a public key ASA-mEz9pTJiaOZx2clBfc7BVT2hP3EVJf9fq3DaetTZYgo

To claim this, I am signing this object:

@khrice
khrice / README
Last active December 11, 2020 22:41
Applescript to pause and play youtube videos using Alfred (In Chrome)
First go to https://www.youtube.com/html5 and request the html5 player (click the button)
Then download Alfred from the app store (https://itunes.apple.com/us/app/alfred/id405843582?mt=12)
go to alfred preferences and make sure AppleScripts is checked in the results preferences
next open a youtube video in chrome
then open alfred via the shortcut (ctrl+space or option+space) and type youtubeController (you can just start to type it and as soon as it shows up hit enter)
this is will pause or play the video for you and after you use alfred to run it a few times you should be able to open alfred and type yo and hit enter and it works.