您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add Google on Baidu searcher
// ==UserScript== // @name 百度搜索加Google、头条搜索按钮 // @namespace http://tampermonkey.net/ // @version 0.2 // @description Add Google on Baidu searcher // @author aniu // @match https://www.baidu.com/* // @grant GM_openInTab // ==/UserScript== (function() { 'use strict'; $('#su').after('<div style="position: absolute;left: 115px;top: 0px;"><input type="button" id="google" value="Google搜索" class="btn bg s_btn" style="background-color:orange;" /></div><div style="position: absolute;left: 230px;top: 0px;"><input type="button" id="toutiao" value="头条搜索" class="btn bg s_btn" style="background-color:red;" /></div>'); $("#google").click(function() { var searchText = $('#kw').val(); GM_openInTab('https://www.google.com/search?q=' + document.getElementById('kw').value, false); }); $("#toutiao").click(function() { var searchText = $('#kw').val(); GM_openInTab('https://www.toutiao.com/search/?keyword=' + document.getElementById('kw').value, false); }); })();