Jump to content

Recommended Posts

Hey all!

I've created a new Workflow controlling Youtube Videos on Google Chrome! I use this mainly for listening to music, but it will work for anything!


You can find the details here: http://www.packal.org/workflow/youtube-control


I have not tested it with any other version other than Mavericks, so some help with testing would be appreciated! Again its only tested witht he latest Google Chrome.


Additionally, this works best with HTML5 video which you can change here https://www.youtube.com/html5


It may break if Youtube updates their layout!




Link to comment
  • 6 months later...
  • 2 years later...

The Same for Safari


tell application "Safari"
	repeat with t in tabs of windows
		tell t
			if URL starts with "http://www.youtube.com/watch" or URL starts with "https://www.youtube.com/watch" then
				do JavaScript "
        var player =
          document.getElementById('movie_player') ||
        if (player) {
          if (player.getPlayerState() === 1) {
          } else {
				exit repeat
			end if
		end tell
	end repeat
end tell


Link to comment
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...