Skip to content

Instantly share code, notes, and snippets.

@lsegal
Created June 29, 2011 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsegal/1053189 to your computer and use it in GitHub Desktop.
Save lsegal/1053189 to your computer and use it in GitHub Desktop.
Fixes the google.com top bar
// ==UserScript==
// @name Fix Google Top Bar
// @description Fix Google.com's ugly top bar
// @author Loren Segal
// @include http://google.*/*
// @include https://google.*/*
// @include http://*.google.*/*
// @include https://*.google.*/*
// @run-at document-start
// @version 1.1
// ==/UserScript==
var css = "#gbx3, #gbx4 { background-color: #fff !important; border-bottom: 0 !important; color: #000 !important; }\n";
css += ".gbts { background: #fff !important; color: #36C !important; font-weight: normal !important; }\n";
css += ".a-Eo-T { background-color: #ddd !important; }\n";
css += ".a-U-T { border-top: 0 !important; }\n";
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