Last active
March 29, 2022 12:49
-
-
Save cameroncros/d529ec90da2a6be783f539a79608df40 to your computer and use it in GitHub Desktop.
Like all the songs in a playlist - Apple Music
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
arr = document.getElementsByClassName('love-or-popular__glyph'); | |
for (let item of arr) { | |
if (item.attributes['aria-check'].value == "false") | |
{ | |
console.log("Clicked"); | |
item.click(); | |
await new Promise(r => setTimeout(r, 500)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment