您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Get rid of that annoying box that transitions in on the search page of google and tells what other people have searched for .
// ==UserScript== // @name Remove Google "People also search for" // @namespace http://spadrig.se/ // @version 1.1 // @description Get rid of that annoying box that transitions in on the search page of google and tells what other people have searched for . // @author Oscar Jonsson - [email protected] // @match https://www.google.com/search* // @icon https://www.google.com/s2/favicons?domain=google.com // @grant none // ==/UserScript== (function() { 'use strict'; const config = { attributes: true, childList: false, subtree: true }; const callback = function(mutationsList, observer) { for(let mutation of mutationsList) if (mutation.attributeName==="style"&&mutation.target.getAttribute("style")==="display: block; opacity: 1;") { mutation.target.parentElement.parentElement.style.height="auto";//cancel out the container-div expanding which it does to contain annoying box mutation.target.remove();//remove the annoying box return observer.disconnect(); } }; const observer = new MutationObserver(callback); observer.observe(document.body, config); })();