您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name xuwc // @namespace https://www.xuweichao.com/ // @version 0.1 // @description try to take over the world! // @author xuwc // @include https://www.baidu.com/* // @grant none // ==/UserScript== (function() { 'use strict'; $("#su").val("百度"); var lg = $("#lg"); if(lg.length == 1){ var html = "<div><span style='color:green;font-size:24px;'>百度一下,你就得到</span></div>"; html += "<img src='https://www.xuweichao.com/images/17486655.jpg'/>"; lg.html(html); }; var ss = $(".s_btn_wr"); if(ss.length == 1){ ss.find("input").eq(0).after("<input type='button' id='su2' value='谷歌' class='bg s_btn'>"); $(".s_btn").css("width","50px").css("border-bottom",""); $("#su2").css("background-color","#f80c"); $("#su2").on('click',function(){ var text = $("#kw").val(); var url = "https://www.google.com/search?q="+text+"&aqs=chrome..69i57j0l5.4124j0j1&sourceid=chrome&ie=UTF-8"; if(text == ""){ url = "https://www.google.com/"; } window.open(url); }); }; })();