Last.fm - Highlight Same Artists
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&submi
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
You could comment on this script if you were logged in.

login to vote
It needed to be fixed again...
An updated version is at http://userscripts.org/scripts/show/4813 again.
Thanks for the magnificent script :)
login to vote
Thanks for the update!
login to vote
Wonderful! Thank you :*
login to vote
Weekly Artists too, now.
login to vote
Done :). It will now work on all artist charts in the charts section of user profiles.
login to vote
btw, is it possible to make it work on other chart pages too? I mean the page with all of the top artists?
login to vote
Thank you for this great script!
I <3>
login to vote
This script works great. Using now :) Thank you!
login to vote
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!
login to vote
I've added a section to a description explaining how to change the style.
login to vote
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???
login to vote
That's awesome. I modified the style so that highlighted artists now appear in Audioscrobbler red (#D20039), and it's pretty nifty.
Thanks!
login to vote
Ah, that's brilliant. Really nice job. (4 stars, in case I forget to rate it later)