EDIT: BTW, it does not automatically replace the old version (1.2e). You'll have to disable or "uninstall" that one... not that it would hurt anything if you don't.
Thanks a lot, lednerg! Seeing as you could easily edit that script (not even using your keyboard :p), could I ask you to do the same effort for the "percentage"-script? (http://www.userscripts.org/scripts/show/2365 --- yeah, I'm "Jelle" ;))
By the way lednerg, don't let other people's creativity be your guide - or limit! If you have some great (statistical or not) ideas, don't hesitate to create some more scripts! :)
The thing that's stopping me is my lack of experience with JavaScript. I can dig through code and figure out what does what and make slight changes, but as far as doing new stuff from scratch, I'm just not there yet.
I am pretty good with HTML and CSS, though. That's how I get the scripts to appear the way they do (mouse hover, positioning, coloring, etc). I've made a stylesheet for Last.fm, which changes it from pink to red. The easiest way to install it would be to use the Stylish extension.
If you hover your mouse over a percentage, it will turn white and the font will grow.
EDIT: the first link was pointing to the 2 decimal version, d'oh.
it looks like one small change can get this script working.
var tracksplayed = document.getElementById("c_aboutMe").innerHTML.match(/<strong>Tracks played:<\/strong> ([0-9]+)<br>/)[1];
I don't have anywhere to host the changes, plus I made a few changes to his modification that I'm not sure more people would like. I'm still working on the play stats but I'm having trouble getting it to display.
Quoth marshee: Thanks. Can anybody get the statistics of how many tracks are played per hour/day/week/month working for beta.
I can host the file... I'm just too stupid to write it.
Edit: Grammar & Spelling
As I mentioned in the first post, I'm still working on it. I just can't seem to get it to display the data. I fixed it so that it produces no errors with regard to getting the information it needs. I just need to figure out how to get it to append the data below the tracks played counter. I made some changes to have it show two decimal points for hours, days and weeks stats and also calculate/project how many plays in a year as well. If anyone has any ideas [I'm a total newb to js, and am merely hacking it to my best guesstimation.], pm me and maybe we can hack this together.
I think the dude in charge of chart changes is giving up on it since periodic charts will be part of the new update.
I can try to work my magic with recently played though.
edit: I didn't have recently played so i just installed it from: http://userscripts.org/scripts/show/1591 If you add http://beta.last.fm/* to it, it seems like it works fine. I'm not familiar enough with the script to know what it should do/look like, but it seems ok to me.
Re: