Last.fm play statistics!
Last update on Sep 28, 2005
Displays a statistic after the number of played tracks on Last.fm. Version 1.2d
Fixed the original Last.fm play statistics! by Arvid
http://userscripts.org/scripts/show/1514
Changelog:
2005-09-28 1.2d
* I fixed the script to work with last.fm again. arvid seems unavailable available.
You could comment on this script if you were logged in.
7 comments
You could comment on this script if you were logged in.

login to vote
http://userscripts.org/scripts/show/2252 The site was update today it seems. I fixed the script.
login to vote
Thanks for fixing my script david!
login to vote
cool :}
login to vote
Below is a patch that makes the script use the 'stats reset on' date if available.
--- 1843.user.js 2005-10-17 13:41:28.000000000 +0100
+++ stats.user.js 2005-10-17 13:38:53.000000000 +0100
@@ -70,7 +70,11 @@
if (!tracksplayed)
return;
-var reg_date = panel.getElementsByTagName("p")[0].innerHTML.match(/Registered on (.*)/)[1];
+var reg_date_match = panel.getElementsByTagName("p")[0].innerHTML.match(/Stats reset on (.*)/);
+if(!reg_date_match) {
+ var reg_date_match = panel.getElementsByTagName("p")[0].innerHTML.match(/Registered on (.*)/);
+}
+var reg_date = reg_date_match[1];
var reg_date_ms = Date.parse(reg_date);
var now = new Date();
login to vote
You're welcome.
I just changed the expression that searches for "registered" date. I'm not sure if the HTML change or if anything else caused the bug, though.
login to vote
Brilliant thanks a lot!
login to vote
Thanks a lot David. Works great. What was wrong with it?