Created
June 13, 2018 17:26
-
-
Save whobutsb/fa46d4418e8cb667b4e8101dbe021d0a to your computer and use it in GitHub Desktop.
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
chrome = Application("Google Chrome"); | |
windows = chrome.windows; | |
for(i = 0; i < windows.length; i++){ | |
tabs = windows[i].tabs; | |
for(j = 0; j < tabs.length; j++){ | |
url = tabs[j].url(); | |
if(url.match(/soundcloud.com/)){ | |
tabs[j].execute({ javascript: "document.querySelector('.playControl').click();" }); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment