您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
牛客网布局优化去广告、添加了几个按钮
当前为
// ==UserScript== // @name 牛客网布局优化去广告 // @namespace www.logicr.club // @version 1.0 // @description 牛客网布局优化去广告、添加了几个按钮 // @author Logicr // @match https://www.nowcoder.com/* // ==/UserScript== (function() { 'use strict'; //去除反馈 $(".fixed-menu").remove(); //顶栏优化icon-mobile-phone $(".icon-mobile-phone").remove(); $("li").remove(".nav-msg"); // $("#jsSideTopicList.module-box.side-topic-box").remove(); $(".module-headclearfix").remove(); //module-body //$(".module-body").remove(); //侧边广告 $(".side-topic-list").remove(); //去除挑战通过的具体名单 $(".list-mod").remove(); //收起牛友的回答 $("#jsComment.module-body.answer-mod").hide(); //添加展开按钮 var responseButton = "<button class='tag-label' id='responseShowButton'>点我展开</button>"; var responseButtonHide = "<button class='tag-label' id='responseHideButton'>点我隐藏</button>"; $(".module-box.js-discussion").before(responseButton); $(".module-box.js-discussion").before(responseButtonHide); $("#responseHideButton").hide(); $("#responseShowButton").click(function(){ $("#jsComment.module-body.answer-mod").show(); $("#responseShowButton").hide(); $("#responseHideButton").show(); }) $("#responseHideButton").click(function(){ $("#jsComment.module-body.answer-mod").hide(); $("#responseHideButton").hide(); $("#responseShowButton").show(); }) //收起回复框框 $("#jsEditorModuleBody.module-body").hide(); //添加点击打开回复框框到“添加回答” $("#jsDealAnswer.btn.btn-primary.float-right.nc-req-auth").click(function(){ $("#jsEditorModuleBody.module-body").show(); }) //相关试题收起 $(".list-module").hide(); //提示 //var abutton = "<a class='tag-label id='showButton' href='#'>点我展开</a>"; //"<button id='hideMe'>隐藏侧边栏</button>"; var abutton = "<button class='tag-label' id='showButton'>点我展开</button>"; var abuttonHide = "<button class='tag-label' id='hideButton'>点我隐藏</button>"; //点击展开 $(".list-module").before(abutton); $(".list-module").before(abuttonHide); $("#hideButton").hide(); $("#showButton").click(function(){ $(".list-module").show(); $("#showButton").hide(); $("#hideButton").show(); }) //点击隐藏 $("#hideButton").click(function(){ $(".list-module").hide(); $("#showButton").show(); $("#hideButton").hide(); }) //oprt-tool clearfix 解答收藏按钮 $(".oprt-tool.clearfix").hide(); //foot $(".ft-wrap").remove(); //module-head clearfix // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址