Last.fm - Highlight Same Artists

Last update on Jan 25, 2006

Highlights artists that you listen to on other users' profiles.

*Works with latest (July update) Last.fm layout.*

On other users' profiles, this script highlights artists in their Overall Top Artists lists that you listen to also. The CSS code used to 'highlight' these artists is easily customizeable through the JavaScript.

*Known Issues:*

  • Will only work on profiles which have the Top Weekly Artists chart (i.e. all active profiles).
  • Only retrives data from your top 50 artists (so it doesn't include artists you rarely listen to).

If you find any other bugs, or have any problems, please "send me a message via Last.fm":http://www.last.fm/inbox/composepm.php?to=Isca_Riot&submit=Compose. Thanks.

Thanks to "XERiON":http://www.last.fm/user/XERiON/ for advice on making this script compatible with other custom CSS styling. Also to "iten":http://www.last.fm/user/iten/ who fixed the script for the old site layout, which I have now merged to make it compatible with the new site.

*How to Modify the Style:*

In the Firefox menu, go _Tools_ > _Manage User Scripts..._ Choose _Last.fm - Highlight Same Artists_ from the list, and then click the _Edit_ button. This should open the JavaScript in a text editor. Near the top of the JavaScript you should see this line:

*var style = "font-weight: bold;";*

The part within the quotation marks (" and ") is the CSS Style - edit this to whatever you want. For example, _color: red;_ or _color: #FF0000;_ will make the highlighted artists displayed in red colour rather than bold. To learn more about CSS, visit "HTML Dog":http://www.htmldog.com/ , which has beginner guides to and detailed references for CSS.

Note: There is also an "alternative version":http://userscripts.org/scripts/show/4813 by "Joel Armstrong":http://userscripts.org/people/8177, if you prefer. :)




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

13 comments Feed-icon

1 point
login to vote
Joel Armstrong scriptwright
Posted Sep 22, 2006

It needed to be fixed again...
An updated version is at http://userscripts.org/scripts/show/4813 again.

Thanks for the magnificent script :)

1 point
login to vote
Tarkus user
Posted Jul 25, 2006

Thanks for the update!

1 point
login to vote
Posted Jul 24, 2006

Wonderful! Thank you :*

1 point
login to vote
sordo script's author
Posted Jul 24, 2006

Weekly Artists too, now.

1 point
login to vote
sordo script's author
Posted Jul 24, 2006

Done :). It will now work on all artist charts in the charts section of user profiles.

1 point
login to vote
Posted Jul 19, 2006

btw, is it possible to make it work on other chart pages too? I mean the page with all of the top artists?

1 point
login to vote
Posted Jul 19, 2006

Thank you for this great script!
I <3>

1 point
login to vote
Arvid scriptwright
Posted Jun 22, 2006

This script works great. Using now :) Thank you!

1 point
login to vote
Jelle scriptwright
Posted May 2, 2006

Great script! Really!
One weird thing: both me and a friend have Simon & Garfunkel in their top 50, yet this doesn't get highlighted! (my page: http://www.last.fm/user/jellevc , his page: http://www.last.fm/user/pieterpieter )
Is it because of the '&' or something?
Good work!

1 point
login to vote
sordo script's author
Posted Feb 10, 2006

I've added a section to a description explaining how to change the style.

1 point
login to vote
mar 1 scriptwright
Posted Feb 8, 2006

Thx for the script! I really like it.

@fedayeen & T Upton

Could you explain me how I can change the color , too? I don't know exactly where to put the code of the color (or more specific: what stands before it, like :)
Or maybe you could even change the script???

1 point
login to vote
T Upton scriptwright
Posted Feb 3, 2006

That's awesome. I modified the style so that highlighted artists now appear in Audioscrobbler red (#D20039), and it's pretty nifty.

Thanks!

1 point
login to vote
Posted Jan 27, 2006

Ah, that's brilliant. Really nice job. (4 stars, in case I forget to rate it later)

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