您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Mostra il menu Strumenti di ricerca nei risultati di ricerca di Google
当前为
// ==UserScript== // @name Auto-Espande Google Search Tools // @description Mostra il menu Strumenti di ricerca nei risultati di ricerca di Google // @namespace https://gf.qytechs.cn/users/237458 // @author figuccio // @match https://*.google.com/* // @match https://*.google.it/* // @version 16.5 // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js // @require https://gf.qytechs.cn/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=19641 // @grant GM_addStyle // @grant GM_setValue // @grant GM_getValue // @run-at document-start // @icon https://www.google.com/s2/favicons?domain=google.it // @noframes // @license MIT // ==/UserScript== //prima di continuare su google click sul pulsante accetta tutto (consent cookie) //setTimeout(function(){ //document.querySelector("#L2AGLb > div").click();}, 4000); //////////////////////////////////////////////////////////non togliere set timeout //Filtro alcuni risultati potrebbero essere espliciti click automatico su ignora dopo 4sec /1sec setTimeout(function(){ document.querySelector("#appbar > div.zNFAfd > div > div.zRHtD > div.O6QT3d > g-raised-button > div").click();},1000); // Show the Search Tools menu GM_addStyle("#hdtbMenus{display:block !important;position:absolute !important;top:68px !important;}"); GM_addStyle("#result-stats{display:none!important;}");/* Circa 261.000.000 risultati (0,61 secondi) nascosto */ ////////////// //Accelera la visibilità del menu Strumenti di ricerca rimuovendo l'animazione. GM_addStyle("#hdtbMenus { transition: none !important; }"); //pulsante Strumenti di ricerca rosso GM_addStyle("#hdtb-tls { color:red !important;background:green!important; border-radius:12px;border:2px solid red!important}"); //testo altro,immagini.ecc colore rosso spondo arancione GM_addStyle('#hdtb .hdtb-mitem a {color:red!important;background:orange!important;border-radius:8px;padding:4px 4px;border:2px solid green!important}'); //altro GM_addStyle('.hdtb-mitem .GOE98c{color:red!important;background:orange!important;border-radius:8px;padding:4px 4px!important;border:2px solid green!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}'); GM_addStyle('#hdtb-msb {min-width:0px!important}');//pulsanti impostazioni e strumenti avvicinati al pulsante altro /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //colori testo strumenti colore verde Search Tools GM_addStyle('.hdtb-mn-hd {color:green!important;background:gold!important;border-radius:9px;border:2px solid blue!important}'); //link espansione strumenti colore verde che diventa rosso al passaggio mouse GM_addStyle('.hdtb-mn-hd:hover {color:red!important}'); //topbar espansioni strumenti colorata Search Tools GM_addStyle('.WE0UJf {background:#303134!important;width:700px;border-radius:12px;border:1px solid red!important}');//ok //pulsante tutti GM_addStyle('#hdtb-msb .hdtb-mitem.hdtb-msel{color:red!important;background:orange!important;border-radius:8px;border:2px solid green!important;padding:4px 4px;border-bottom:6px solid blue!important}'); //triangolini rossi GM_addStyle('.gTl8xb {border-color:red transparent!important}'); //menu colorato GM_addStyle('.hdtbItm.hdtbSel, .hdtbItm a,#hdtb-more-mn a,#cdrlnk, .hdtb-mn-o {color:lime!important;background:red !important;}'); GM_addStyle('.hdtb-mn-o {border:2px solid blue!important}');//bordo blu //no publicita correlate GM_addStyle('#rcnt .col:nth-of-type(3) {display:none !important;}'); //le persone anno chiesto anche GM_addStyle('.OJXvsb.Wnoohf.cUnQKe.kp-blk {display:none !important;}'); //Promemoria sulla privacy di Google GM_addStyle('#cnsh,#cnso,#cnsi{display:none!important}'); //////////////////////////////////////////////////aggiunto youtube process(); new MutationObserver(process).observe(document.body || document.documentElement, { childList: true, subtree: true }); function process(mutations) { let q, queryElement = document.querySelector('input[name="q"]'); // selector for the Google search input textbox if (queryElement?.value) q = encodeURIComponent(queryElement.value); else if (q = location.href.match(/^.+?(?:[#/&?](?:q|query))=(.+?)(?:|&.+|\|.+)$/)) q = q[1]; let link = document.querySelector(`a[href*='tbm=vid']`); if (q && link?.href) { link.href = 'https://www.youtube.com/results?search_query=' + q; link.textContent = 'YouTube'; console.log('create', link.textContent); } } ///ricerche correlate GM_addStyle('#brs {display:none !important;}'); GM_addStyle('.commercial-unit-desktop-top {display:none !important;}'); ///////////////cookie consent//////////////giugno 2022 rifunziona (function(){ "use strict"; if (document.readyState != 'loading') consent(); else document.addEventListener('DOMContentLoaded', consent); function consent() { var e=document.querySelector('#introAgreeButton'); if (!e) e=document.querySelector('div.jw8mI button#zV9nZe.tHlp8d, div.VDity button#L2AGLb.tHlp8d, div.GzLjMd button#L2AGLb.tHlp8d, form[action="https://consent.google.com/s"] button'); e && e.click(); } })(); /////////colori menu ingranaggio e menu che compare quando clicco tipo su qualsiasi data ecc GM_addStyle('.gLSAk {background-color:!important;color:!important;border:2px solid green!important}'); //di nuovo publicita e correlati a destra GM_addStyle('#rhs {display:none !important;}'); GM_addStyle('.YTDezd {display:none !important;}'); /////scorrimento pagine senza ricarica endless google const currentSearchTab = document.querySelector('[aria-current]') const checkAllResultsPage = currentSearchTab !== null && currentSearchTab.previousSibling == null if ( checkAllResultsPage ) { //rimuovere la navigazione al di sotto di una casella dei suggerimenti document.querySelector('#botstuff [role="navigation"]').style.cssText = 'visibility: hidden; height: 0;'; }; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// // carica le pagine quando è in fondo let pageNumber = 0 let loadNewResults = _ => { let nextURL = new URL((document.querySelector('[role="navigation"]>[role="presentation"] a:first-child').href).replace(/(?<=start=)(.*?)(?=\&)/g,pageNumber * 10)); fetch( nextURL.href ) .then(response => response.text()) .then(text => { let newDocument = (new DOMParser()).parseFromString( text, 'text/html') let newResults = newDocument.documentElement.querySelector('#center_col > [role="main"]') let checkMoreResults = newDocument.querySelector('#topstuff p > span > em') == null if ( checkMoreResults ) { document.createElement('div').appendChild(newResults) document.querySelector('#center_col > [role="main"]').parentElement.appendChild(newResults) }; }) }; document.addEventListener('scroll', _ => { if (window.innerHeight + window.pageYOffset >= document.body.offsetHeight) { pageNumber = pageNumber + 1 loadNewResults(); }; }); //////////////////////30risultati per pagina (function() { 'use strict'; if (GM_getValue('Amount of results to Show') === undefined) //Se la quantità di risultati da mostrare non è definita {GM_setValue('Amount of results to Show', 30);} //Imposta la quantità predefinita di risultati da mostrare come 30/100 if (location.pathname === '/search' && location.href.match('&num=' + GM_getValue('Amount of results to Show') + '&newwindow=') === null) {location.href = location.href += '&num=' + GM_getValue('Amount of results to Show') + '&newwindow=';} //Reindirizza per aggiungere le scelte dell'utente })(); /////////////////////////////////////////////////////////////////////////////////////////
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址