Skip to content

Instantly share code, notes, and snippets.

@joshaven
Created August 24, 2010 23:45
Show Gist options
  • Save joshaven/548564 to your computer and use it in GitHub Desktop.
Save joshaven/548564 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name HideReportSpam
// @author Joshaven Potter
// @namespace joshaven/hideReportSpam
// @description Hides Gmail's "Report spam" Button
// @version 0.0.1
// @include http://mail.google.com/*
// @include https://mail.google.com/*
// @include http://*.mail.google.com/*
// @include https://*.mail.google.com/*
// ==/UserScript==
(function() {
var css = "@namespace url(http://www.w3.org/1999/xhtml); div.J-Zh-I.J-J5-Ji.J-Zh-I-Js-Zq.J-Zh-I-Js-Zj { display: none !important; }";
if (typeof GM_addStyle != "undefined") {
GM_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