// ==UserScript== // @name HacPai摸鱼小助手 // @namespace https://github.com/AdlerED // @version 1.0.0 var version = "1.0.0"; // @description https://hacpai.com/cr 摸鱼小助手,伪装成学♂习网站 // @author Adler // @connect hacpai.com/cr // @include https://hacpai.com/cr* // @require https://code.jquery.com/jquery-1.11.0.min.js // @note 19-07-04 1.0.0 初版发布,快来和我一起摸鱼吧! // @downloadURL https://update.greasyfork.icu/scripts/387141/HacPai%E6%91%B8%E9%B1%BC%E5%B0%8F%E5%8A%A9%E6%89%8B.user.js // @updateURL https://update.greasyfork.icu/scripts/387141/HacPai%E6%91%B8%E9%B1%BC%E5%B0%8F%E5%8A%A9%E6%89%8B.meta.js // ==/UserScript== (function() { //修改标题 document.getElementsByTagName("title")[0].innerText = 'Python 高级教程 | 菜鸟教程'; //修改图标 var link = document.querySelector("link[rel*='icon']") || document.createElement('link'); link.type = 'image/x-icon'; link.rel = 'shortcut icon'; link.href = 'https://static.runoob.com/images/favicon.ico'; document.getElementsByTagName('head')[0].appendChild(link); //导入主css样式 $("head").append(""); var fakeCss = $("head").children(":last"); fakeCss.attr({ rel: "stylesheet", type: "text/css", href: "https://www.runoob.com/wp-content/themes/runoob/style.css?v=1.153" }); //添加假标题栏 $(".nav").after('
'); //删除真标题栏 $(".nav").remove(); //延时添加选项栏 $('.logo-search').after(' '); $(".nav").attr("style","font-size:2px;margin-bottom:10px;background-color:#96b97d;"); //删除底色 $("body").css({"background":"none"}); //导入评论css样式 $("head").append(""); var commentFakeCss = $("head").children(":last"); commentFakeCss.attr({ rel: "stylesheet", type: "text/css", href: "https://www.runoob.com/wp-content/themes/runoob/assets/css/qa.css?1.42" }); //导入FontAwesome $("head").append(""); var FACss = $("head").children(":last"); FACss.attr({ rel: "stylesheet", type: "text/css", href: "https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" }); //假评论头 $(".content").prepend('