Skip to content

Instantly share code, notes, and snippets.

@maripo
Created March 13, 2012 02:23
Show Gist options
  • Save maripo/2026204 to your computer and use it in GitHub Desktop.
Save maripo/2026204 to your computer and use it in GitHub Desktop.
Wrap Gmail's logo by a link to "Inbox" (Greasemonkey Script)
// ==UserScript==
// @name Gmail Clickable Logo
// @namespace http://www.maripo.org
// @description Wrap Gmail's logo by a link to "Inbox"
// @include https://mail.google.com/*
// ==/UserScript==
(
function()
{
setTimeout (
function ()
{
var logo = document.getElementById('gbqld');
if (!logo || 'A' == logo.parentNode.tagName)
return;
var link = document.createElement('A');
link.href = 'https://mail.google.com/mail/u/0/#inbox';
link.target = '_top';
logo.parentNode.appendChild(link);
link.appendChild(logo);
}
, 1000);
}
)();
@maripo
Copy link
Author

maripo commented Jun 23, 2012

Sorry, it didn't work because the structure of gmail's HTML had been changed.
I fixed it just now and now it works!
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment