User Scripts » Discussions

Percentage and Profile Stats (Profile Polishing)

 
    • snyde1 said...
    • Subscriber
    • 4 May 2007, 21:53

    Percentage and Profile Stats (Profile Polishing)

    This is a script to "polish" your profile. The script is a combination of marshee's "Play Statistics" and "Percentage" scripts. It only uses information on the current profile (or chart) page, so it's fairly fast. It will respect reset dates, and uses a weekly basis for percentages on weekly chart pages.

    There are a few settings on it. These are the user selected intem and (their status in this file).
    Do percentages (on)
    Do statistics (on)
    Set the text colour on bars (off)
    Number of decimals to use (1)

    ProfilePolish.user.js


    As always, post a note, if you have comments on the script.

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
    • kupomir said...
    • User
    • 8 Aug 2007, 14:33
    function request:

    can you please add more play statistics... i'm thinking about something like:

    25000 track count reached: 2months 21days 14hours ago
    50000 track count reached: in 5months 17days 9hours
    1000000 track count reached: in 20years 2months 7hours :))

    • snyde1 said...
    • Subscriber
    • 8 Aug 2007, 18:37
    kupomir said:
    function request:
    can you please add more play statistics... i'm thinking about something like:

    That is interesting. I'll think about that. One thing is that if I do add it, it will likely be a date value:

    Landmark track plays
    25000 was reached on 27 Jan 2007
    50000 will be reached on 24 Aug 2008

    (based on kupomir's plays B-)

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
    • kupomir said...
    • User
    • 8 Aug 2007, 22:04
    snyde1 said:
    That is interesting. I'll think about that. One thing is that if I do add it, it will likely be a date value:

    Landmark track plays
    25000 was reached on 27 Jan 2007
    50000 will be reached on 24 Aug 2008

    (based on kupomir's plays B-)

    heh! that is even better idea than mine :))

    • snyde1 said...
    • Subscriber
    • 9 Aug 2007, 00:19

    Beta - landmark tracks

    Okay, here is a copy of the modified profile polisher which allows viewing the dates when landmark tracks were/will be played. The default is 10k, 25k, 50k and 100k. Change as you see fit.

    ProfilePolish.user.js


    Everything is turned on. There may be differences from the original - this is off my personal copy.

    (Note: I think the reason I was so far out on the numbers in the posting above was that I forgot to include that you started listening 3 weeks into your first month. At least, that's my guess.)

    As always, please let me know what you think.

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
    • kupomir said...
    • User
    • 9 Aug 2007, 12:29
    Thanks, the script is working fine

    • snyde1 said...
    • Subscriber
    • 12 Aug 2007, 03:37

    Extras

    Thanks to kupomir, I have revisited this script. There are a couple of additions and some smoothing of rough edges.

    New Features:
    • Add album panel: Similar to the existing artists and tracks panels, the information from the album data will be listed. As this requires loading another page, this can slow things down. Only the overall page is available - there is no matching for people who have set their profiles to 3/6/12 month charts.
    • Chart limits: Rather than having all 50 top artists/tracks/albums listed, you can reduce this number to the top N.
    Both of these work only on the profile page. Neither of these features should affect other pages!

    Defaults for the features are changeable by editting the script. Here are the values as distributed:
    Side Panel:
    • Statistics: on
    • Landmarks: off
    • Decimal Places: 1
    Charts:
    • Percentages: on
    • Dark text: on
    • Limit count: 25
    • Album panel: off
    I hope that you enjoy the script.

    ProfilePolish.user.js

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
    • drg0nz0 said...
    • User
    • 21 Aug 2007, 23:43
    That's quite a useful script. Can it be used to limit only the number of top tracks to, say, 5, and leave the artists at the current 50? Can it be used to expand the top artists to 75?

    Also, I don't suppose this works with Firefox?

    • snyde1 said...
    • Subscriber
    • 22 Aug 2007, 07:33
    drg0nz0 said:
    Can it be used to limit only the number of top tracks to, say, 5, and leave the artists at the current 50?
    Can it be used to expand the top artists to 75?
    Also, I don't suppose this works with Firefox?

    The answers to all of these are "not in its current state". The logic would have to be reworked for the first one.

    The second is probably the easiest to add, but would require loading two other pages (which can be slow).

    This could be encorporated into the Greasemonkey percentages script. I won't be doing that, though.

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
  • where do i install these files?

    where's the user directory? ^^"

    • snyde1 said...
    • Subscriber
    • 30 Sep 2007, 03:50
    jOiNt_frAGGeR said:
    where's the user directory? ^^"

    Anywhere you want it.

    Here is a brief description, but the idea is that you just save to a directory, then tell Opera where that directory is. (Right click, select site preferences, scripting, then choose the directory at bottom of the dialog.)

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
  • nice, thanks!

    =DD

  • For the ones who wanst normal 50 instead of "new" 25. Just look to the code ;-) It works well with 50.

    • snyde1 said...
    • Subscriber
    • 10 Jan 2008, 04:06

    Update:

    This is a relatively minor update. It adds multilanguage support (French, German, Italian, Portuguese, Spanish and Swedish) and the matching of the album period to the displayed period for the profile visited.

    ProfilePolish.user.js


    Enjoy. (If you don't, please let me know about it.)

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
    • [Deleted user] said...
    • User
    • 10 Jan 2008, 22:06

  • Thank you! The script works for me.

    • snyde1 said...
    • Subscriber
    • 17 Mar 2008, 01:18

    Moved off site

    This is now available through UserScripts.Org.

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
  • :)
    many thnx

    :))
    you can change the location for the title-statistics (per hour...) in the upper-right corner move, the real name under the avatar and the country under the real name?
    all pictures are non visible, where i can change this?

    chatterer

    Der Strom wird erst durch den Körper gejagt und dann durch die Beine. -= A.C. Leuchter =-
    • snyde1 said...
    • Subscriber
    • 26 Jul 2008, 23:21
    chatterer said:
    you can change the location for the title-statistics (per hour...) in the upper-right corner move, the real name under the avatar and the country under the real name?
    all pictures are non visible, where i can change this?
    As to positioning, I hadn't given it a lot of thought. Moving things about like you suggest isn't posible without rewriting the web site - doable, but more work to maintain, as I don't have control over what changes Last.fm want to make. It may also break other scripts.

    To get the pictures back for the recent tracks, you'll have to change the line:
    var squishRecent = 1;
    to
    var squishRecent = 0;

    For the library, you'll need to re-download the script and do the same for squishLibrary.

    Someday, I hope to program a proper interface to configure these things. But that requires storage of the data between sessions, which isn't really possible right now.

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
  • many thnx ... :)
    one little problem: x,x%, this is by me in the middle of the line and i cannot see the complete Top-Title and Top-Album. any option to make this behind the play-count?

    any forum-link for "Hide Activity Box" ? ;)
    Proposal: hide/kill the flash-player-box/container (i hate this)

    greetz

    Der Strom wird erst durch den Körper gejagt und dann durch die Beine. -= A.C. Leuchter =-
    • snyde1 said...
    • Subscriber
    • 28 Jul 2008, 16:45
    chatterer said:
    one little problem: x,x%, this is by me in the middle of the line and i cannot see the complete Top-Title and Top-Album. any option to make this behind the play-count?
    The placement of that is one of the problems I have with the script as well. I'd like to have it on the right side, but that didn't work out. I'll look into this further,

    any forum-link for "Hide Activity Box" ? ;)
    Proposal: hide/kill the flash-player-box/container (i hate this)

    I'm testing that on the Greasemonkey people. We'll see what they have to say. I'd like to roll it into the polisher (and add a link for reply tracker) - no time at the moment.

    As for the flash thing, I just used block-content to hide it - trying this in a user javascript means that the flash player to load, then it gets hidden. Hmmm - I could hide the empty space ...

    Thanks for the feedback and ideas. I can't say when any of this will happen, but it will be considered then.

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
    • snyde1 said...
    • Subscriber
    • 26 Sep 2008, 01:23
    New release to fix the script to handle the new format on non-English sites. Plus, some other changes

    + Format related changes. (just to make this work)
    + Removes "flip" images
    + Adds "Reply tracker" link
    + The "landmark tracks" calculator has been removed. The Landmark script will handle that better.

    For English users, the "recent tracks" squisher has been changed to not remove the images, as there is now a setting in the profile to fix that.

    Did I hear that right? Mondegreens - for the misheard word.
    Like Odds? Can't get better than Even Odds!

    Speak your truth quietly and clearly; and listen to others, even to the dull and the ignorant; they too have their story.
Anonymous users may not post messages. Please log in or create an account to post in the forums.