Created
January 21, 2015 20:09
-
-
Save seangaffney/c874f0cf5988a3f67288 to your computer and use it in GitHub Desktop.
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== | |
// @author Jagadeesh | |
// @name Remove Contextual Gadgets from Gmail | |
// @namespace | |
// @description Removes Contextual Gadgets/widgets from footer of email messages in Gmail. | |
// @include https://mail.google.* | |
// @include http://mail.google.* | |
// ==/UserScript== | |
(function(){ | |
var css="\ | |
div.gs div.hi {\ | |
display: none !important;\ | |
}\ | |
"; | |
if (typeof GM_addStyle != "undefined") { | |
GM_addStyle(css); | |
} else if (typeof PRO_addStyle != "undefined") { | |
PRO_addStyle(css); | |
} else if (typeof addStyle != "undefined") { | |
addStyle(css); | |
} else { | |
var heads = document.getElementsByTagName("head"); | |
if (heads.length > 0) { | |
var node = document.createElement("style"); | |
node.type = "text/css"; | |
node.appendChild(document.createTextNode(css)); | |
heads[0].appendChild(node); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment