您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Choose what you want to see on the Google navigation bar.
当前为
// ==UserScript== // @name Custom Google Navigation Bar // @description Choose what you want to see on the Google navigation bar. // @namespace 407d4100-4661-11e4-916c-0800200c9a66 // @grant none // @include https://*.google.com/* // @version 1.1.0.0 // ==/UserScript== links = [ ["http://www.greasyfork.runtimutd.eu.org", "Greasy Fork"], ["http://mail.google.com", "Gmail"], ]; // List of links to display on the navigation bar. hideApps = false; // Hide the apps icon hideNotifications = false; // Hide notifications hideShare = true; // Hide the Google+ Share button content = ""; var elems = document.getElementsByTagName("div"), i; for(x in links) { content += " <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) { if(hideApps) elems[i].style.paddingRight = "5px"; elems[i].innerHTML = content; } else if((" " + elems[i].className + " ").indexOf(" gb_yc ") > -1) { if(hideApps) elems[i].children[1].style.display = "none"; if(hideNotifications) elems[i].children[2].style.display = "none"; if(hideShare) elems[i].children[3].style.display = "none"; } }