Grease up Google's link bar

With the launch of Google Calendar comes the handy link bar that makes switching between Google services simple.  As I've said before, this is a great idea and will certainly help them cross promote their many services.

With the launch of Google Calendar comes the handy link bar that makes switching between Google services simple.  As I've said before, this is a great idea and will certainly help them cross promote their many services.

Unfortunately, this little blue bar has a bit of a quirk -- one that I simply couldn't live with.  So I brought out the grease and whipped up a script that makes it function like it should.

With the current version of the bar, each time you click a link you are presented with a new browser window.  It clearly makes more sense to have these links use the current browser instance so your desktop isn't overrun with multiple Gmail and Google Calendar instances.  So here it is, my greasemonkey script that will make those links as useful as they were intended to be.

Click here to install the script, or create your own flavour with the source below:

// ==UserScript==
// @name Google Link Bar Fix
// @homepage http://blogs.zdnet.com/Google
// @description Makes the new link bar function as it should.
// @author Garett Rogers
// @namespace http://www.aimx.com/greasemonkey/
// @include http://*.google.com/*
// @include https://*.google.com/*
// ==/UserScript==

(function (){
var lnk = window.document.getElementsByTagName("a");
var mstr = /^(_blank)$/i;
for (x=0; x<lnk.length; x++) {
if (lnk[x].target.match(mstr)) { lnk[x].target = "_top"; }
}
}());

Newsletters

You have been successfully signed up. To sign up for more newsletters or to manage your account, visit the Newsletter Subscription Center.
See All
See All