Auto-Espande Google Search Tools

Mostra il menu Strumenti di ricerca nei risultati di ricerca di Google +link colorati

当前为 2019-10-28 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Auto-Espande Google Search Tools
// @description Mostra il menu Strumenti di ricerca nei risultati di ricerca di Google +link colorati
// @namespace https://greasyfork.org/users/237458
// @author      figuccio
// @version     11.0
// @include     https://www.google.*/search*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @require     https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=19641
// @grant       GM_addStyle
// ==/UserScript==

(function() {
    'use strict';
    /* globals $, waitForKeyElements */
//pulsante Strumenti di ricerca rosso
GM_addStyle("#hdtb-tls { color:red !important; }");
GM_addStyle("#hdtb-tls { background:green !important; }");

//link altro,immagini.maps ecc colore rosso
GM_addStyle('#hdtb .hdtb-mitem a {color:red!important}');

//link ricerca google colorati di rosso
GM_addStyle('a:visited {color:black !important}');
//GM_addStyle('a:link {color:red !important}');


//link altro,immagini.maps ecc colore rosso che cambia colore al passaggio mouse diventa verde
GM_addStyle('#hdtb .hdtb-mitem a:hover{color:green!important}');

//link espansione strumenti colore verde
GM_addStyle('.hdtb-mn-hd {color:green!important}');

//link espansione strumenti colore verde che diventa rosso al passaggio mouse
GM_addStyle('.hdtb-mn-hd:hover {color:red!important}');
//topbar espansioni stumenti colorata nero chiaro
GM_addStyle('#slim_appbar.ab_tnav_wrp{background:#cfd3d8!important}');

//Accelera la visibilità del menu Strumenti di ricerca rimuovendo l'animazione.
GM_addStyle("#hdtbMenus { transition: none !important; }");
// Mostra il menu Strumenti di ricerca.
waitForKeyElements("#hdtb-tls", clickNodeUntilItSticks);
function clickNodeUntilItSticks(jNode) {
  var searchToolbar = $("#hdtbMenus")[0];
  var sanityCount = 1;
  var menusVisiblePoller = setInterval(function() {
    if (
      sanityCount < 20 &&
      searchToolbar.offsetWidth === 0 &&
      searchToolbar.offsetHeight === 0
    ) {
      jNode[0].click();
    } else {
      clearInterval(menusVisiblePoller);
    }
  },88 );
}
         // rimuovi ads google
    document.querySelector("#rhscol").remove();
    document.querySelector("#bottomads").remove();
    document.querySelector("#tads").remove();
    document.querySelector("#taw").remove();
})();