Created
March 13, 2012 02:23
-
-
Save maripo/2026204 to your computer and use it in GitHub Desktop.
Wrap Gmail's logo by a link to "Inbox" (Greasemonkey Script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); | |
} | |
)(); |
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
Is this working? Doesn't seem to work for me in Chrome.