Last active
December 6, 2015 09:47
-
-
Save rmuslimov/01015a9e7f0d651aa341 to your computer and use it in GitHub Desktop.
vk.com manipulate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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