Skip to content

Instantly share code, notes, and snippets.

@txusko
Created February 15, 2017 07:31
Show Gist options
  • Save txusko/e7e8a4861840548a72e7be0c39281f46 to your computer and use it in GitHub Desktop.
Save txusko/e7e8a4861840548a72e7be0c39281f46 to your computer and use it in GitHub Desktop.
Last.fm: javascript hack to emulate the click action on the delete button of all the scrobbled elements in a page. You should be logged in. Example page: http://www.last.fm/user/YOUR_USER/library
document.querySelectorAll('.chartlist-delete-button').forEach(function(elemento) {
elemento.click();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment