您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
用google搜索,很多人看到屏幕后会问你怎么上google的,所以把google的logo换成百度,他们就不会问那么多问题了!
当前为
// ==UserScript== // @name 把google搜索伪装成百度搜索 // @namespace win.somereason.web.utils // @version 2018.11.14.0 // @description 用google搜索,很多人看到屏幕后会问你怎么上google的,所以把google的logo换成百度,他们就不会问那么多问题了! // @author somereason // @license MIT // @date 2018-10-05 // @match *://www.google.com/search* // @match *://www.google.com.hk/search* // @grant none // ==/UserScript== // (function () { var logo=document.getElementById("logo"); if(logo===null){ console.log("oops,google又改样式了.请静待更新"); }else{ logo.innerHTML='<a href="https://www.baidu.com" data-hveid="7"><img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_86d58ae1.png" alt="Baidu" data-atf="3"></a>'; document.title=document.title.replace(/Google\s/g,"百度"); var searchBtnsByName=document.querySelectorAll("[aria-label='Google 搜索']") if(searchBtnsByName.length>0){ var searchBtn=searchBtnsByName[0]; searchBtn.innerHTML='<div style="background-color: #3385ff;color: white;width: 80px;margin: 0px;border: 1px solid #2d78f4;cursor: pointer;height: 100%;line-height: 44px;">百度一下</div>' searchBtn.style.cursor="pointer"; } } })();