您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
谷歌搜索页添加按钮,切换百度搜索
// ==UserScript== // @name google2baidu // @namespace http://yuii.yui/ // @version 0.2 // @description 谷歌搜索页添加按钮,切换百度搜索 // @author yui // @include *://*.google.*/search?* // @grant none // ==/UserScript== (function() { 'use strict'; var a=document.getElementsByClassName("main")[0]; var a2=document.createElement("a"); a.appendChild(a2) a2.innerHTML='百<br>度' a2.style.color='#00AAFF' //a2.style.width='40px' a2.id='bingsr' a2.style.position = "absolute"; a2.style.left = "0px"; a2.style.top = "270px"; //a2.style.border='1px solid #e2e2e4' //a2.setAttribute("href",url) a2.setAttribute("readonly",true) a2.onclick=function(){var str=document.getElementsByTagName('input')[0].value;var url='https://www.baidu.com/s?wd='+str;window.location.href=url} //$(document).on('click', '#bingsr', function(){var str=$('input').value;var url='https://www.baidu.com/s?wd='+str;window.location.href=url}) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址