Greasemonkey Yahoo! Player

Posted: January 17, 2008 in Greasemonkey
Tags: , ,

On January 8th, Yahoo released their Yahoo! Media Player. It’s a really slick little app that lets you quickly and easily embed play buttons next to any MP3 links you may have by simply adding a script tag to your site.

I was playing with it some and though to myself, “Man, this would be a really cool thing to add to a Greasemonkey script that automatically adds the player to any page I’m browsing that serves up Mp3s.” Anyway, here it is: yahooplayer.user.js

If you don’t have Greasemonkey for Firefox installed, I’ve compiled it into a Firefox browser extension as well. Just unzip the yahooplayer.zip file and drag the extracted xpi file into the firefox window. (The host I’m using throws 404s when I link directly to the xpi, so I’ll find a workaround for that and link directly to it soon and save a step!) The script simply looks to see if a Yahoo! Media Player is already installed, and if not, adds one to the page. (It’s ugly if you have two! :D )

Enjoy! Please feel free to leave any comments or suggestions. To test the install, you can visit your favorite music blog, or visit 3hive and look for the player.

Comments
  1. SteveR says:

    Will this update when they release new builds? They released one on 2/8 – was just wondering. Appears that it did. Slick.

  2. hotrodscott says:

    Yes it will. It still links directly to their hosted script, so it will pick up any changes they make. If you want to use on of their “/latest” (beta) builds, you can change the url in the code pretty easily.

  3. lucasgonze says:

    Hey Scott, I have posted a version with some tweaks. See http://gonze.com/ymp/gm/ for details. Any chance you could pick up the changes in your version?

  4. hasen says:

    awesome cool, thx!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s