Skip to content

Instantly share code, notes, and snippets.

@rmuslimov
Last active December 6, 2015 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmuslimov/01015a9e7f0d651aa341 to your computer and use it in GitHub Desktop.
Save rmuslimov/01015a9e7f0d651aa341 to your computer and use it in GitHub Desktop.
vk.com manipulate
tell application "Google Chrome"
repeat with current_tab in (tabs of front window)
set has_vk_player_mark to execute current_tab javascript "!!document.getElementById('gp')"
if has_vk_player_mark then
if URL of current_tab contains "vk.com" and has_vk_player_mark then
set URL of current_tab to "javascript:audioPlayer.nextTrack();"
end if
end if
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment