您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
解决百度全家桶的众多广告~百度搜索引擎的优化部分工作交由AC百度优化
当前为
// ==UserScript== // @name 百度去广告+美化 // @namespace https://www.huankong.top/ // @version 1.469 // @description 解决百度全家桶的众多广告~百度搜索引擎的优化部分工作交由AC百度优化 // @author 幻空 // @match https://www.baidu.com/* // @match https://fanyi.baidu.com/* // @match https://baike.baidu.com/* // @icon https://www.huankong.top/favicon.ico // @grant none // ==/UserScript== (function() { //初始化变量 let vm = 0; //浏览器窗口大小变化时 window.onresize = function(){ size(); fresh(); }; function size(){ vm = $(window).width()/100; console.log(vm); } function fresh(){ if(window.location.host === "fanyi.baidu.com"){ //百度翻译 $(".header").css({display:"none"}); $(".manual-trans-btn").css({display:"none"}); $(".translate-setting").css({display:"none"}); $(".domain-trans-wrapper").remove(); $(".footer").remove(); $(".trans-other-right").remove(); $("#left-result-container").bind('DOMNodeInserted', function() { $("#app-read").remove(); }); $(".translateio").css({position:"relative",top:"15px"}); $(".trans-operation").css({marginLeft:16.207455429497568*vm+"px"}); $(".container").css({width:"100%"}); } if(window.location.host === "baike.baidu.com"){ //百度百科 $("#side-share").remove(); //$(".before-content").remove(); $(".topbar").remove(); $("#J-declare-wrap").remove(); $(".J-lemma-title").html($(".J-lemma-title").find("h1")); $(".top-tool").remove(); $(".posterFlag").remove(); $(".professional-con").remove(); $(".side-content").html($(".summary-pic")); $(".album-list").remove(); $(".tashuo-bottom").remove(); $(".after-content").remove(); $(".wgt-footer-main").remove(); $(".tool-buttons").remove(); $(".user-info").remove(); $(".help").remove(); $(".navbar-wrapper").remove(); $(".wgt-searchbar").css({margin:"0 auto",width:"",float:"unset"}); $(document).scroll(function(){ if(scrollY>=300){ $(".wgt-searchbar").css({width:"615px"}); }else{ $(".wgt-searchbar").css({width:""}); } }) } } //在百度首页时 if(window.location.href === "https://www.baidu.com/"){ $("#s_top_wrap").remove(); $(".s-top-nav").remove(); $("#s-top-left").remove(); $("#u").remove(); $("#u1").remove(); $("#s_side_wrapper").remove(); $("#bottom_layer").remove(); $("#s-hotsearch-wrapper").remove(); $("#s_lg_img").css({top:"30%"}); $("#lg").css({max_height:"",height:"100%"}) $("#kw").keypress(function (event) { if (event.keyCode === 13) { fresh(); } }) }else{ //页面加载完成 size(); fresh(); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址