public
Last active

Fixes the google.com top bar

  • Download Gist
fix_google.user.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
// ==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);
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.