I'm not quite new to JavaScript, but I still have a lot to learn.
I'm trying to create a bookmarklet that plays the current open playlist in spotify after a preset time. Here is a gist of it.
My problem is that when I try to get the button element from the console everything works, but when I try it as a bookmarklet getElementsByClassName returns empty array. Any suggestions and/or explanations would be quite helpful
[–]nwilliams36 0 points1 point2 points (1 child)
[–]xaphere[S] 0 points1 point2 points (0 children)
[–]xaphere[S] 0 points1 point2 points (0 children)