Last.fm

Mass Track Delete

Occasionally I accidentally leave a machine running while it is playing music (e.g. through headphones), and as a result my Last.fm gets polluted with tracks. I don't know of any way in Last.fm to delete multiple tracks, so I finally got fed up and developed the following bookmarklet.

When you are on your tracks page and run the code below, it will iterate through every delete icon and click it; it will take about 50 seconds to delete most of the elements on the page.

WARNING It will delete anything that it can find, so don't run it on other pages!

You can either drag this link into your bookmarks, or you can copy and paste the code directly: