Created
June 29, 2011 05:08
-
-
Save lsegal/1053189 to your computer and use it in GitHub Desktop.
Fixes the google.com top bar
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 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