O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  


 
Buy the book!
Yahoo! Hacks
By Paul Bausch
October 2005
More Info

HACK
#65
Add a Content Tab to Yahoo! Messenger
With a bit of Registry hacking, you can add a custom content tab to Yahoo! Instant Messenger
The Code
[Discuss (1) | Link to this hack]

Yahoo! Messenger (http://messenger.yahoo.com) is more than just a way to have conversations with your friends. It's is also a way to keep up with your favorite Yahoo! content. Across the bottom of the Yahoo! Messenger window, you'll find a series of content tabs. Each tab gives you instant access to some information you'd normally find on the Yahoo! website, such as weather, stock quotes, news headlines, or your Yahoo! calendar. shows a series of content tabs in Yahoo! Messenger, with the Yahoo! Buzz tab selected.

Figure 1. The Yahoo! Buzz content tab in Yahoo! Messenger

The Yahoo! Buzz tab gives you a quick summary of what you'll find at the Yahoo! Buzz site (http://buzz.yahoo.com), tracking trends in Yahoo! searching. You can customize which tabs appear in Yahoo! Messenger by choosing Messenger → Preferences from the top menu and selecting the Content Tabs category from the left pane. From there, you can choose from around a dozen different tabs to show or hide from your Yahoo! Messenger interface.

TIP

This hack describes the latest version of Yahoo! Messenger for Windows. At the time of this writing, the Mac version of Yahoo! Messenger has four content tabs, and there's no way to add custom tabs to the interface

The choices you'll find in your Yahoo! Messenger settings are static, and you can't add or remove tabs you find from within the preferences interface. But this hack shows how to add your own content tab to Yahoo! Messenger by tweaking some settings behind the scenes.

TIP

Thanks to Marcus Foster at Yahoo! for sharing this method of adding a tab!

Inside Your Registry

All of the content tabs within Yahoo! Messenger are defined within the Windows Registry, a database that stores system settings. You can take a look at the settings for each of the tabs by viewing the settings in the Registry Editor. Start the Registry Editor by clicking Start → Run and typing regedit.

WARNING

Be very careful when editing your Registry settings. If you change the wrong setting, you could do irreparable harm to your system. Just be aware that the Registry settings are vital to your system, and if you're not comfortable tooling around in sensitive areas, you might want to skip this hack!

With the registry editor open, browse to the following key: HKEY_CURRENT_USER\Software\Yahoo\Pager\View\. Beneath the View key, you'll find a series of registry keys with the prefix YMSGR_. These are the available content tabs, and you can highlight each to see the system settings. shows the Registry key for the Yahoo! Buzz tab, with its system settings in the right pane.

Figure 2. Yahoo! Messenger content tab settings in the Registry

The important settings to note are Display Name, Display Bmp, and content url. The first two set the tab name and icon. And because each tab display is simply a web page, the content url value is where you'll find the page for a particular tab. In fact, you can visit any tab page in Internet Explorer including the Yahoo! Buzz content tab at http://tools.search.yahoo.com/ym/buzz.

The key to adding your own tab to Yahoo! Messenger is creating a new Registry key with content url set to a URL of your choosing. And the easiest way to create a new key with all of the proper settings is to copy an existing key. Inside the Registry Editor, highlight the YMSGR_buzz key, right-click, and click Export. Save the key as YMSGR_buzz.reg, and you'll be set to create your own tab.

So, what type of web page makes a good content tab? The best content tab page will be compact, with its contents viewable in a small space. Most pages probably won't fit very well into a content tab, and you'll have to design a page specifically for use within Yahoo! Messenger. If you've already added a Yahoo! Bookmarks sidebar to your browser, you'll know there's already a page available to display your Yahoo! Bookmarks in a small space. There isn't a Bookmarks content tab currently available in Yahoo! Messenger, but the following Registry changes will add one.

Hacking the Hack

Sites specifically designed for mobile devices like cell phones and PDAs work extremely well as Yahoo! Messenger content tabs. If you can track down a URL for a mobile site, you can create your own tab. For example, Yahoo!'s photo-sharing service Flickr has a mobile site available at http://flickr.com/mob. Change the key and display names in the Registry file, and set content url to the Flickr mobile URL. Once you run the file, restart Yahoo! Messenger and add the new tab. You'll end up with the content shown in .

With the Flickr tab in place, you can easily keep tabs on the photos your friends are posting without opening up a web browser.

Figure 5. Flickr mobile in a Yahoo! Messenger content tab

Yahoo! also has a mobile site (http://wap.oa.yahoo.com); you could easily set up a Yahoo! tab and have access to all your personalized Yahoo! content in a single Yahoo! Messenger tab.


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.