Colorful Search

By blizzchris Last update Sep 27, 2009 — Installed 18,090 times.

Bug: Color + margin on top links!!

in
Subscribe to Bug: Color + margin on top links!! 2 posts, 1 voice



samzz User
FirefoxWindows

Hello,
Your script Colorful Search 1.2.3, also colourize and add a padding/margin to the top left links in the Google search result page:
Web
Images
Vidéos
Maps
Actualités
Traduction
Gmail
plus

Please, look at the attached screen-shot.
https://docs.google.com/leaf?id=0B2AhS-W7ydCiZm...

To fix this, I just added this code at the end of your script:
(function() {
var css = "@namespace url(http://www.w3.org/1999/xhtml); li.gbt{margin:0 !important;padding:0 !important;border-width:0 !important; background-color: inherit !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);
}
}
})();

Thanks and regards.

 
samzz User
FirefoxWindows

Added for "li.gbmtc" too (sub LI tag).

(function() {
var css = "@namespace url(http://www.w3.org/1999/xhtml); li.gbt,li.gbmtc{margin:0 !important;padding:0 !important;border-width:0 !important; background-color: inherit !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);
}
}
})();