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 Feed-icon

1 point
login to vote
Stephen Paulger scriptwright
Posted Dec 1, 2005

http://userscripts.org/scripts/show/2252 The site was update today it seems. I fixed the script.

1 point
login to vote
Arvid scriptwright
Posted Nov 15, 2005

Thanks for fixing my script david!

1 point
login to vote
Golanlan scriptwright
Posted Nov 4, 2005

cool :}

1 point
login to vote
Andrew Wilki... scriptwright
Posted Oct 17, 2005

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();

1 point
login to vote
david 2 script's author
Posted Oct 4, 2005

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.

1 point
login to vote
TS2Master user
Posted Oct 2, 2005

Brilliant thanks a lot!

1 point
login to vote
Xon scriptwright
Posted Oct 2, 2005

Thanks a lot David. Works great. What was wrong with it?

You could comment on this script if you were logged in.