Rhapsody Artist-Linker Greasemonkey Script Part 2
I’ve made some updates to the Rhapsody Greasemonkey Script I mentioned earlier. The script scans your web pages for the names of the most popular 1,000 or so artists and marks up the page with links the Rhapsody Online for playback. So anytime you’re reading a web page that’s talking about popular music, the names of the musicians will be hyperlinks that when you click them will let you listen to the artists’ music.
The biggest change from the previous version is that instead of running the regex on the HTML of the doc, it just runs on the text nodes of the DOM. This fixes the bug that would result in broken half-finished HTML tags in your page if the regex found the name of an artist in a URL or somewhere else in the middle of an HTML tag. Previously, firefox would also get fairly confused if the script found an artist name in the middle of a link since nested hyperlinks aren’t allowed in HTML for some reason.
If you’d like to try it, you can download and install the new and improved Rhapsody Artist-linker Greasemonkey Script. (If you haven’t already, you’ll want to install greasemonkey.) For those of you who don’t have greasemonkey installed, or are still using aaaayyeeee for browsing (why??), here are some examples of what it does. Here’s a chunk from random friendster profile, before and after applying the artist-linker script:
And here’s an entertainment news story after getting marked up:
Those are all hyperlinks that when you click on them will start playing key tracks by those artists on Rhapsody online. Like usual no account is needed for full length high-quality tracks, but available in the US only.
Hope you enjoy it!