Created
October 17, 2015 15:42
-
-
Save SammyVimes/496f013ed6f586f51d4a to your computer and use it in GitHub Desktop.
I forgot to turn off the music while I was at work, which resulted in 1500 identical scrobbles. So I wrote this.
This file contains hidden or 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
var id = setInterval(function () { | |
var val = jQuery(".metadata-display").text(); | |
val++; | |
val--; | |
console.log("Left: " + val); | |
if (val <= 0) { | |
clearInterval(id); | |
return; | |
} | |
jQuery(".chartlist-delete-button").click(); | |
jQuery(".next a").click(); | |
}, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment