Firefox » Discussions

Last.fm Play Statistics!

 
  • Re:

    Quoth lednerg:
    Latest fix (June 19, 2006):

    Install (Right-Click, "Install User Script...")

    Added a space where it was now needed.


    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.


    you´re my new hero! :)

    Visit my group for Pearls Before Swine comic strip

  • I still don't have the percentages after each artist count. Is that another script? I forget. ;p

    • marshee said...
    • User
    • 20 Jun 2006, 11:41
    yeah it is... there's another topic on it here somewhere...

    • jellevc said...
    • User
    • 20 Jun 2006, 16:41
    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" ;))

    ...That sure would be mighty awesome!


    - Cheers

    Lang leve de Kindervrienden
    • lednerg said...
    • User
    • 20 Jun 2006, 21:01
    Last.fm Percentage

    1 decimal version

    2 decimals version

    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.

    Edited by lednerg on 20 Jun 2006, 21:06
    • jellevc said...
    • User
    • 20 Jun 2006, 21:04
    How cool are you... THANKS.

    Lang leve de Kindervrienden
  • You're awesome, lednerg - thanks!

    • jellevc said...
    • User
    • 21 Jun 2006, 05:56
    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! :)

    Lang leve de Kindervrienden
    • lednerg said...
    • User
    • 22 Jun 2006, 00:18
    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.

    Stylish page at Mozilla.org

    Last.fm RED (left-click with Stylish installed, read the directions on the page)

    I might do other colors later on if people want.

  • Pink is beautiful. ;)

    • marshee said...
    • User
    • 22 Jun 2006, 07:35
    I still like the original colours

    • lednerg said...
    • User
    • 23 Jun 2006, 18:07
    Of course a day or so after I posted that, they release the latest last.fm beta -- which will make a lot of this stuff broken again. lol

  • Yeah, I was just coming here to ask when can we expect all these scripts to be ported over to the new site. ;)

    I had to disable prettifier. I haven't changed the links on the others to see how well they (don't) work.

    • [Deleted user] said...
    • User
    • 28 Jun 2006, 01:37
    Quoth lednerg:
    Last.fm Percentage

    1 decimal version

    2 decimals version

    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.

    • marshee said...
    • User
    • 30 Jun 2006, 16:32
    Does that code make it work for the beta site?

    • [Deleted user] said...
    • User
    • 30 Jun 2006, 19:38
    Quoth marshee:
    Does that code make it work for the beta site?

    indeed. just change to the line that includes "var tracksplayed" to what i posted above.

    • marshee said...
    • User
    • 30 Jun 2006, 19:59
    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

    • [Deleted user] said...
    • User
    • 30 Jun 2006, 20:37
    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.

  • Re:

    Quoth theboinkbaron:
    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];


    Thanks! It's cool to have at least one of the Greasemonkey scripts working on the beta site.

    Now to get Recently Played and Chart Changes ported...

    • [Deleted user] said...
    • User
    • 1 Jul 2006, 00:12
    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.

  • Ha! That was easy. Why didn't I think of that? ;)

    Thanks for the tip. :)

    • marshee said...
    • User
    • 1 Jul 2006, 14:15
    right click here to install the beta version of the 1d.p. percentage script.

  • I already had it working, thanks to theboinkbaron, but thanks for hosting the updated script, marshee!

    Remaining wish list: Chart Changes and Highlight Same Artists

    I would think the latter wouldn't be too difficult, but the former might be tough to tackle.

  • Nvm I had a question but i answered myself lol.

    "I got so many skills that they're falling out my pockets"
    • jellevc said...
    • User
    • 3 Jul 2006, 16:52
    Yeah, both Chart changes and Highlight same artists would be awesome.

    Lang leve de Kindervrienden
Anonymous users may not post messages. Please log in or create an account to post in the forums.