Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Last.fm play statistics!

Displays a statistic after the number of played tracks on Last.fm. Version 1.2

This page is a gravestone for a script that will never get updated again. If you want the same functionality this script gives, go to your profile at last.fm and hold your mouse over "Tracks played:". There you go.

This scripts calculates tracks per week, day and hour and displays it beneath "Tracks played" in the profile container on the left sida of the user page. This is a rewrite of this script: http://www.userscripts.org/scripts/show/931

Please rate and vote ;)
![Screenshot](http://user.tninet.se/~gft623w/thisisnoblog/las...)

(latest version, even though you can't see it on this pic, it works fine with forum post count now)

This scripts calculates tracks per week, day and hour and displays it beneath "Tracks played" in the profile container on the left sida of the user page. This is a rewrite of this script: http://www.userscripts.org/scripts/show/931

Changelog:

2005-08-26 1.2
* Due to a change in the HTML of last.fm which milk pointed out (thanks!), the script stopped working. Changed it to work again.

2005-08-17 1.1
* Some code clean up, removed unnecessary GM_logs etc
* Changed the code in accordance to milks suggestions (http://www.userscripts.org/people/327). Thanks for the suggestions!
The script works better now when you've got more than zero posts in the forum.

2005-08-14 1.0
* Initial version






Dec 28, 2005
M Lenzen Scriptwright

GBR55:
No it means last.fm rejected the tracks you submitted because the date that you played them was before the date you registered. Check to see if the date on your computer got set back, happened to me once.

 
Dec 15, 2005
GBR55 User

under my profile box, the "Tracks Played" number is stuck on 21. it did give me some sort of a messaga esying it couldn't upload my track detailes because the date i played them was before the date the plugin was set to" (or something like that. Is this a code issue?

 
Dec 9, 2005
Stephen Paulger Scriptwright

http://userscripts.org/scripts/show/2252 Try this script if you're having Nan problems

 
Dec 7, 2005
shof515 User

I AM GETTING A NAN MESSAGE!!!...NOT WORKING

 
Dec 3, 2005
Balinsky User

It seemed to stop working for me when "the pony" was introduced. Or it may have been when cluster 2 went down. Anyways all three fields give me a readout of NaN.

 
Sep 28, 2005
david 2 Scriptwright

I fixed the script and uploaded it here
http://userscripts.org/scripts/show/1843

 
Sep 27, 2005
david 2 Scriptwright

Same error here.

 
Sep 27, 2005
Basiaf User

No success here, either :
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
panel.getElementsByTagName("p")[0].innerHTML.match(/Registered on (.*?)\n/) has no properties
Source File: lastfmplaystatistics.user.js
Line: 374 Source Code: 374

 
Sep 16, 2005
Joq User

No, wait. Just my browser b0rking with the console. So, the following errors came up:

panel.getElementsByTagName("p")[0].innerHTML.match(/Registered on (.*?)\n/) has no properties

panel.getElementsByTagName("p")[0].innerHTML.match(/Registered on (.*?)\n/) has no properties

uncaught exception: [Exception... "'[JavaScript Error: elem.ownerDocument.defaultView has no properties"... etc.

 
Sep 16, 2005
Joq User

Apparently no errors in the javascript console. Strange.

 
Sep 15, 2005
Arvid Script's author

Seriously, I have no idea why none of you can't seem to get it working. I'm using the exact same script on GM 0.6.2 and Firefox 1.5 Beta 1 (it used to work on GM 0.5 and Deer Park also). Are any of you seeing any errors in the javascript console?

 
Sep 15, 2005
Joq User

Hmm, queer. The script doesn't seem to work on my computer (using FF 1.0.6 & GM 0.5.3).

 
Sep 12, 2005
Xon Scriptwright

Ok. Im at school now and I installed GM and this script and its working fine. Its just at my house that it dosn't work.

 
Sep 12, 2005
Xon Scriptwright

I become a subscriber a few days ago. The script wasnt working for me long before I become a subscriber.

 
Sep 12, 2005
Arvid Script's author

I think that's normal. Mine says: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4" I've checked your profile, and my script seems to be working there. Maybe the problem is you being a subscriber. Try loggin out, any difference? I've got a friends, he's subscriber and the script doesn't work for him either.

 
Sep 11, 2005
Xon Scriptwright

Ok. I installed Firefox 1.5 Beta 1 but for some reason when I go to about: it says im using Firefox 1.4 And I installed greasemonkey 0.6.1.4. And the script still inant working. Maybe its just my profile. I have alot of imformation in that section. Check out my profile
http://www.last.fm/user/Xon/

 
Sep 11, 2005
Xon Scriptwright

Im using GM 0.5.3 and FF 1.0.6
im im seeing a few errors in the javascript console for your script but they are all the same. Here it is.

Error: panel.getElementsByTagName("p")[0].innerHTML.match(/Registered on (.*?)\n/) has no properties
Source File: lastfmplaystatistics.user.js
Line: 374
Source Code:
374

 
Sep 11, 2005
Arvid Script's author

Xon, works fine for me. What are you using? I'm using firefox 1.5 beta 1, greasemonkey 0.6.1.4. But it used to work with firefox 1.0.6 and GM 0.5.X too. Are you seeing any errors in the javascript console?

 
Sep 11, 2005
Xon Scriptwright

It dosnt seem to work anymore. I install it and I dont see any results at all.

 
Aug 27, 2005
Arvid Script's author

there seems to be a problem with donators. I'll fix it as soon as I can.

 
Aug 26, 2005
Arvid Script's author

ok, updated. should work now.

 
Aug 26, 2005
Arvid Script's author

milk, i'll fix it as soon as i can. hang in there for an update.

 
Aug 25, 2005
milk User

they've changed the html on the site enough to break the script :/

 
Aug 17, 2005
milk User

thanks very much! :)

 
Aug 17, 2005
Arvid Script's author

I've updated the script to 1.1. Check the desc. for changelog.

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