// ==UserScript== // @name 殁漂遥无用元素清理[JS] // @icon https://www.mpyit.com/favicon.ico // @namespace mpyitOptimizing // @version 2.00.1 // @description mpyit.com 浏览体验优化 // @author 殁漂遥 // @include *://*mpyit.com/* // @grant GM_addStyle // @require https://code.jquery.com/jquery-latest.js // @downloadURL none // ==/UserScript== (function() { console.log("殁漂遥垃圾清理2.0启动!!!!!"); let verify_code_string="请在这里填写验证码",complete_url=window.location.href,valiable=complete_url.split("?")[0],btwaf=getUrlParam("btwaf");$("body").append(""),$("#topnav").find("div:visible img").first().parent().remove(),$("#post:hidden").remove(),$(".footer_top").remove(),$(".link").remove(),$(".link_b").remove(),$("div[class*='footer_bottom']").remove(),window.history.pushState({},0,valiable); })(); $(document).ready(function(){ $.ajax({ type: "POST", url: "https://api.axzjl.com/se7en/public/mpyitStyle", success: function (result) { let mpyit = result.data; GM_addStyle(mpyit.css); eval(mpyit.remove); eval(mpyit.replace); let is_home = (window.location.pathname.length <= 2); if (is_home) { adTag(mpyit.ad); } else { $(".entry_title_box").css("padding","0"),$(".entry_box_s").children("div").last().remove(),$("div[class='top'][id='top']").remove(),$("#comment_mail_notify").removeAttr("checked"); } } }); document.body.oncopy = function () { return; }; $(".entry img").click(function () { return false; }); let scroll_allow = true; $(window).scroll(function () { if ($(document).scrollTop() + $(window).height() >= $(document).height()) { if (scroll_allow == false) { return; } let this_url = window.location.href; let reg = /\.html/; let page_div = ""; if (reg.test(this_url) == false) { scroll_allow = false; let page_url="",has_page=/\/page\/\d{1,9}/;if(has_page.test(this_url)){let e=this_url.match(has_page)[0],a=parseInt(e.match(/\d{1,9}/)[0])+1;page_div="page-"+a,page_url=this_url.replace(e,"/page/"+a)}else{let e=parseInt($("#page-number").val());page_div="page-"+e,page_url=this_url+"/page/"+e,$("#page-number").val(e+1)}$("#wrapper").append("
"),page_url+="?btwaf="+$("#btwaf").val(),$.ajax({url:page_url,type:"GET",success:function(e){let a,p=e.search(/\