Skip to content

@lsegal /fix_google.user.js
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Something went wrong with that request. Please try again.