Created
November 19, 2016 13:50
-
-
Save va7sdf/4621e8f6b86c9efffd15bf289037b7e8 to your computer and use it in GitHub Desktop.
Clear
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
/* Clears user scrobbles for given page, and then clicks the next button. | |
Thanks to http://blog.thomasupton.com/2012/08/batch-deleting-last-fm-scrobbles/ for the inspiration */ | |
jQuery('.chartlist button.chartlist-delete-button').each(function(_, b) { | |
b.click(); | |
}); | |
jQuery('li.next > a').trigger('click'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment