殁漂遥暗号

自动填写老殁暗号,文本变链接,去广告,去推广

目前為 2020-04-12 提交的版本,檢視 最新版本

// ==UserScript==
// @name           殁漂遥暗号
// @namespace   ACScript
// @version         0.7
// @description   自动填写老殁暗号,文本变链接,去广告,去推广
// @author          狐狸
// @include         *://www.mpyit.com/*
// @grant            none
// @run-at          document-end
// ==/UserScript==

//自动填暗号
(function() {
	setTimeout(function(){
		document.querySelector("#verifycode").value = "002"
	}, 1000);

//去除canvas线条
(function() {
    'use strict';
    setTimeout(function () {
        $("#c_n15").remove();
        $("#c_n16").remove();
        $("#c_n17").remove();
        $("#c_n18").remove();
        $("#c_n19").remove();
        $("#c_n20").remove();

//过滤顶部推广app
        $(".post-45099").remove();
        $("#post-99999").remove();
        $("#post-99999").remove();
        $("#post-99999").remove();

//过滤顶部超大banner
         $("#playBox").remove();

    }, 100);
   })();


//去除复制提示
document.body.oncopy=null;void(0);


    //文本变链接
document.onclick = function(e) {
    var link = /((https?:\/\/)(\.|\w|-|#|\?|=|\/|\+|@|%|&|:|;|!|\*|(?![\u4e00-\u9fa5\s*\n\r'"]))+)/g;
    if (!e.target.innerHTML.match(/<a/) && e.target.innerText.match(link) && e.path.length > 4) {
        e.target.innerHTML = e.target.innerHTML.replace(link ,'<a target="_blank" href="$1" style="text-decoration:underline;">$1</a>');
    }
};

})();