Custom Google Navigation Bar

Choose what you want to see on the Google navigation bar.

Ekde 2014/09/27. Vidu La ĝisdata versio.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Custom Google Navigation Bar
// @description Choose what you want to see on the Google navigation bar.
// @namespace   407d4100-4661-11e4-916c-0800200c9a66
// @include     https://*.google.com/*
// @version 0.0.1.20140927174453
// ==/UserScript==

links = [
    ["http://plus.google.com", "+You"],
    ["http://mail.google.com", "Gmail"],
    ["http://www.google.com/images", "Images"]
];

content = "";
var elems = document.getElementsByTagName("div"), i;

for(x in links) {
    content += "&emsp;<a style='color: #333;text-decoration: none;' onmouseover='this.style.textDecoration = \"underline\";' onmouseout='this.style.textDecoration = \"none\"' href='" + links[x][0] + "'>" + links[x][1] + "</a>";
}
for (i in elems) {
    if((" " + elems[i].className + " ").indexOf(" gb_zc ") > -1) elems[i].innerHTML = content;
}