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

Last.fm - Percentage

Display percentage statistics on user profile

This script is configurable. Edit the script with your favorit editor, and go to the line that says /* CONFIGURATION HERE */. The two variables below works as this: ndecimals is the number of decimal you want to see. Default is 1. percentage_treshold is the lowest percentage you want to see. Default is 0.5%.

Free Image Hosting at www.ImageShack.us

Did this script help you? Please donate, but don't feel forced to :)

2007-03-22	1.2
* Meh, forget to fix somethings.
* The percentage wont overflow the bar now.

2007-03-22	1.1
* Pulled myself together and fixed this one
* Added two variables for configuration:
	* ndecimals: this is the number of decimals shown. 
	change this to -1 if you don't want to round the numbers at all. that would be probably be stupid.
	* percentage_treshold: this is the smallest percentage you want shown. 
	change this to 0 if you want all percentages to show, no matter how small

2005-08-14	1.0






1 point
login to vote
jesse user
Posted Jan 12, 2006

doesn't show track titles for me, have a couple of other last.fm userscripts installed though.

1 point
login to vote
T Upton scriptwright
Posted Jan 11, 2006

I think a neat addition to this script would be separate percentages for the weekly charts, so that it shows a percentage of only the total tracks played in the date range that the chart is in.

I realize this might be a little weird to code, but it's just an idea. Thanks for the great script, and M Lenzen, I like that you added support for smaller percentages.

1 point
login to vote
M Lenzen scriptwright
Posted Dec 16, 2005

If anyone's intereset I posted my changes here:
http://userscripts.org/scripts/show/2365

1 point
login to vote
M Lenzen scriptwright
Posted Oct 18, 2005

Oh yea, the script is great btw.

1 point
login to vote
M Lenzen scriptwright
Posted Oct 18, 2005

I found that whole percentages weren't detailed enough for me, if anybody else is interested, so I changed the percentage line to:

var percentage = Math.round((played / tracksplayed) * 1000) / 10;

and changed the cutoff to .1%

1 point
login to vote
Henrik N admin
Posted Sep 8, 2005

Cool, though sometimes the percentages don't fit into the dark gray bar. Take a look at the 1 % artists in the "overall" listing here: http://www.last.fm/user/Malesca/

1 point
login to vote
BooooooooB scriptwright
Posted Aug 27, 2005

Nice one.

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