您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
关掉垃圾堆CSDN
// ==UserScript== // @name CSDN终结者百度版 // @description 关掉垃圾堆CSDN // @version 1.5 // @author CHENMO // @match https://www.baidu.com/* // @homepageURL https://github.com/chenmoand // @grant none // @license MIT // @namespace https://greasyfork.org/scripts/388197 // ==/UserScript== (function() { 'use strict'; // 万恶的csdn滚球把 const bdinput = $("#form input[name='wd']"); const bdsubmit = $("#form input[value='百度一下']") bdsubmit.click(() => { if(!isSpeac(bdinput.val())){ bdinput.val(bdinput.val() + ' -csdn'); } }); const isSpeac = (str) => { if(str.length <= 5) {return (false)}; return str.substr(str.length - 5, str.length) === '-csdn'; } })();