屏蔽高速下载器

屏蔽高速下载器,自动去除高速下载器毒瘤,只保留普通下载地址,不会吧不会吧,不会真有人用高速下载器下载东西吧?

// ==UserScript==
// @name         屏蔽高速下载器
// @namespace    http://www.baidu.com
// @version      1.9
// @description  屏蔽高速下载器,自动去除高速下载器毒瘤,只保留普通下载地址,不会吧不会吧,不会真有人用高速下载器下载东西吧?
// @author       Jesen
// @icon         https://github.githubassets.com/favicon.ico
// @match        *://*.onlinedown.net/*
// @match        *://*.xitongzhijia.net/*
// @match        *://*.xitongtiandi.net/*
// @match        *://*.soft-down.net/*
// @match        *://*.downza.cn/*
// @match        *://*.singdown.com/*
// @match        *://*.ucbug.com/*
// @match        *://*.42xz.com/*
// @match        *://*.xz7.com/*
// @match        *://*.32r.com/*
// @match        *://dl.pconline.com.cn/*
// @match        *://dl.pconline.com.cn/*
// @match        *://pc.qq.com/*
// @match        *://*.qqtn.com/*
// @match        *://*.ddooo.com/*
// @match        *://*.pc6.com/*
// @match        *://*.xiazaiba.com/*
// @match        *://*.cr173.com/*
// @match        *://*.cncrk.com/*
// @match        *://*.crsky.com/*
// @match        *://*.mydown.com/*
// @match        *://*.bear20.com/*
// @match        *://*.duote.com/*
// @match        *://*.xpgod.com/*
// @match        *://*.uzzf.com/*
// @match        *://*.yesky.com/*
// @match        *://*.opdown.com/*
// @match        *://*.jb51.net/*
// @match        *://*.pchome.net/*
// @match        *://*.jisuxz.com/*
// @match        *://*.pc0359.cn/*
// @match        *://*.itmop.com/*
// @match        *://*.greenxiazai.com/*
// @match        *://*.wmzhe.com/*
// @match        *://*.xfdown.com/*
// @match        *://*.veryhuo.com/*
// @match        *://*.weidown.com/*
// @match        *://*.easck.com/*
// @match        *://*.downcc.com/*
// @match        *://*.aiweibk.com/*
// @match        *://*.xphome.org/*
// @match        *://*.downxia.com/*
// @match        *://xiazai.zol.com.cn/*
// @match        *://*.dyjqd.com/*
// @match        *://*.winwin7.com/*
// @match        *://*.51xiazai.cn/*
// @grant        none
// @license      GPL
// ==/UserScript==

(function() {
    'use strict';
    var blackWord = "高速下载";
    var tmp = undefined;
    function c_setnone(cname){
        let tmp = document.getElementsByClassName(cname);
        for(let i=0;i<tmp.length;i++){
            tmp[i].style.display = "none";
        }
    }
    function c_set0h(cname){
        let tmp = document.getElementsByClassName(cname);
        for(let i=0;i<tmp.length;i++){
            tmp[i].style.height = 0;
        }
    }
    function t_setnone(tname){
        let tmp = document.getElementsByTagName(tname);
        for(let i=0;i<tmp.length;i++){
            if(tmp[i].innerText.indexOf(blackWord)!=-1){
                tmp[i].style.display = "none";
            }
        }
    }
    function w_setnone(tname,bword){
        let tmp = document.getElementsByTagName(tname);
        for(let i=0;i<tmp.length;i++){
            if(tmp[i].innerText.indexOf(bword)!=-1){
                tmp[i].style.display = "none";
            }
        }
    }
    if(document.domain.indexOf("onlinedown.net") != -1){
        //华军软件园
        c_setnone("gaosu");
        t_setnone("h4");
        return;
    }
    if(document.domain.indexOf("downza.cn") != -1){
        //下载之家
        c_setnone("gaosu");
        return;
    }
    if(document.domain.indexOf("singdown.com") != -1){
        //星动下载
        c_setnone("top-speed-download");
        return;
    }
    if(document.domain.indexOf("ucbug.com") != -1){
        //ucbug
        c_setnone("downnow");
        document.getElementsByClassName("downloader")[0].innerHTML = ""; //高速下载提示框
        document.getElementsByClassName("bendown")[0].style.background = ""; //本来是暗色不容易看见,改成了绿色
        document.getElementsByClassName("BzClick")[0].innerHTML = ""; //高速下载地址
        document.getElementsByClassName("BzClick")[1].innerHTML = ""; //高速下载地址
        return;
    }
    if(document.domain.indexOf("xitongzhijia.net") != -1){
        //xitongzhijia
        c_setnone("btn-dl_swift");
        c_setnone("m_swift");
        t_setnone("h3");
        return;
    }
    if(document.domain.indexOf("xitongtiandi.net") != -1){
        //xitongtiandi
        c_setnone("load_qk");
        c_setnone("xzq");
        return;
    }
    if(document.domain.indexOf("42xz.com") != -1){
        //42xz绿盒
        c_setnone("gsxz");
        c_setnone("one");
        c_setnone("two");
        c_setnone("dxxz");
        t_setnone("h3");
        return;
    }
    if(document.domain.indexOf("xz7.com") != -1){
        //jiguangxiazaizhan
        c_setnone("bzxz");
        c_setnone("xx_yd");
        t_setnone("b");
        return;
    }
    if(document.domain.indexOf("32r.com") != -1){
        //3322下载站
        c_setnone("gsdbtn");
        c_setnone("ptgsxz");
        t_setnone("p");
        t_setnone("a");
        return;
    }
    if(document.domain.indexOf("dl.pconline.com.cn") != -1){
        //pconline
        let tmp = document.getElementsByClassName("sh-down-btn")[0];
        if(tmp != undefined){
            tmp.parentNode.removeChild(tmp);
        }
        tmp = document.getElementById("fast_0");
        if(tmp != undefined){
            tmp.parentNode.removeChild(tmp);
        }
        t_setnone("span");
        return;
    }
    if(document.domain.indexOf("qqtn.com") != -1){
        //qqtn
        c_setnone("u-gs-btn");
        c_setnone("left_add");
        t_setnone("h3");
        return;
    }
    if(document.domain.indexOf("ddooo.com") != -1){
        //多多软件
        c_setnone("xzbtn");
        tmp = document.getElementsByClassName("DownloadSfotCon")[0].children[1];
        tmp.style.display = "none";
        return;
    }
    if(document.domain.indexOf("pc6.com") != -1 || document.domain.indexOf("pc0359.cn") != -1){
        //pc6
        c_setnone("downnow");
        c_setnone("one");
        t_setnone("h3");
        tmp = document.getElementById("gaosuxiazai");
        tmp.style.display = "none";
        return;
    }
    if(document.domain.indexOf("xiazaiba.com") != -1){
        //下载吧
        document.getElementsByClassName("soft-down")[1].style.display="none";
        t_setnone("span");
        c_setnone("down-group");
        return;
    }
    if(document.domain.indexOf("cr173.com") != -1 || document.domain.indexOf("xfdown.com") != -1 || document.domain.indexOf("downcc.com") != -1){
        //西西软件or旋风下载or绿色资源网
        c_setnone("downnowgaosu");
        c_setnone("xiazaiqi");
        t_setnone("b");
        t_setnone("h3");
        c_setnone("downurl");
        return;
    }
    if(document.domain.indexOf("bear20.com") != -1 || document.domain.indexOf("mydown.com") != -1 ){
        //极速下载,小熊下载
        c_setnone("dx_bths1");
        c_setnone("gs_btns");
        return;
    }
    if(document.domain.indexOf("xiazai.zol.com.cn") != -1){
        //zol下载
        //document.getElementById("downloader_main1").style.display = "none"
        document.getElementById("downloader_main").style.display = "none"
        c_setnone("xiazaic-topb-box");
        c_setnone("higha");
        c_setnone("one");
        c_setnone("two");
        w_setnone("h4","官方下载地址")
        return;
    }
    if(document.domain.indexOf("cncrk.com") != -1){
        //起点
        document.getElementById("gsxza").style.display = "none"
        c_setnone("gaosu_btn");
        c_setnone("dxzq");
        c_setnone("one");
        c_setnone("two");
        t_setnone("span")
        return;
    }
    if(document.domain.indexOf("pc.qq.com") != -1){
        //腾讯电脑管家软件中心web版
        c_setnone("J_qq_download");
        return;
    }
    if(document.domain.indexOf("crsky.com") != -1){
        //非凡软件站crsky
        c_setnone("Gs_d");
        c_setnone("wxImg_btn");
        t_setnone("span");
        t_setnone("h4");
        return;
    }
    if(document.domain.indexOf("duote.com") != -1){
        //多特软件站
        c_setnone("fast-down-btn");
        c_setnone("down-title");
        c_setnone("downFast-list");
        t_setnone("span");
        t_setnone("h4");
        return;
    }
    if(document.domain.indexOf("xpgod.com") != -1){
        //系统天堂
        c_setnone("bzxz");
        c_setnone("new_xzq");
        c_setnone("show_xzq");
        return;
    }
    if(document.domain.indexOf("uzzf.com") != -1){
        //东坡下载
        c_setnone("f-uzzf-down");
        c_setnone("f-uzzf-link");
        t_setnone("h3");
        return;
    }
    if(document.domain.indexOf("jb51.net") != -1){
        //jb51脚本之家
        c_setnone("gsdown");
        c_setnone("downgs");
        c_setnone("gs");
        t_setnone("h3");
        return;
    }
    if(document.domain.indexOf("yesky") != -1){
        //tianji
        c_setnone("ad_360");
        c_setnone("down_referer");
        c_setnone("down_referrer");
        t_setnone("h4");
        tmp = document.getElementsByTagName("a");
        for(let i=0;i<tmp.length;i++){
            if(tmp[i].innerHTML.indexOf("下载")!=-1){
                if(tmp[i] != undefined && tmp[i].onclick != undefined && tmp[i].onclick.toString().indexOf("底部'") != -1){
                    tmp[i].style.display="none";
                }
            }
        }
        return;
    }
    if(document.domain.indexOf("pchome.net") != -1){
        //pchome
        c_setnone("ad");
        c_setnone("dl-tip");
        return;
    }
    if(document.domain.indexOf("opdown.com") != -1){
        //欧普下载
        c_setnone("downnows");
        c_setnone("c_down");
        return;
    }
    if(document.domain.indexOf("jisuxz.com") != -1){
        //jisuxz
        c_setnone("dl_gaosu");
        setInterval(function(){c_setnone("xiazaiqi");t_setnone("span");},100)
        return;
    }
    if(document.domain.indexOf("itmop.com") != -1){
        //itmop
        c_setnone("xiazaiqi");
        c_setnone("downnowgaosu");
        t_setnone("h3");
        tmp = document.getElementById("gaosuxiazai");
        tmp.style.display = "none";

        return;
    }
    if(document.domain.indexOf("greenxiazai.com") != -1){
        //greenxiazai
        tmp = document.getElementsByClassName("downbtn")[0].children;
        tmp[1].style.display = "none";

        setInterval(function(){
            t_setnone("b");
            t_setnone("span");
            c_setnone("yinsu_xz");
            c_set0h("yinsu_xz");
            c_setnone("bzxz");
            c_set0h("bzxz");
        },100)
        return;
    }
    if(document.domain.indexOf("wmzhe.com") != -1){
        //完美下载站
        c_setnone("gs");
        c_setnone("downloader");
        return;
    }
    if(document.domain.indexOf("11684.com") != -1){
        //巴士下载站
        c_setnone("bzxz");
        c_setnone("bzClick");
        c_setnone("sm-soft");
        return;
    }
    if(document.domain.indexOf("veryhuo.com") != -1){
        //必火
        c_setnone("bendown");
        c_setnone("gs");
        c_setnone("gs2");
        return;
    }
    if(document.domain.indexOf("weidown.com") != -1){
        //weidown
        t_setnone("a");
        t_setnone("p");
        return;
    }
    if(document.domain.indexOf("easck.com") != -1){
        //easck
        c_setnone("bzxz1");
        c_setnone("bzxz2");
        t_setnone("h3");
        return;
    }
    if(document.domain.indexOf("aiweibk.com") != -1){
        //easck
        c_setnone("gsxz");
        c_setnone("lili");
        t_setnone("p");
        return;
    }
    if(document.domain.indexOf("soft-down.net") != -1){
        //soft-down.net
        c_setnone("soft-text-r");
        c_setnone("box-top-xiazai");
        t_setnone("span");
        return;
    }
    if(document.domain.indexOf("downxia.com") != -1){
        //soft-down.net
        c_setnone("bendown");
        c_setnone("gaosu_down_div");
        t_setnone("h3");
        return;
    }
    if(document.domain.indexOf("dyjqd.com") != -1){
        //dyjqd.com
        c_setnone("bzxz");
        c_setnone("BZ_DOWN");
        c_setnone("bzClick");
        return;
    }
    if(document.domain.indexOf("winwin7.com") != -1){
        //winwin7.com
        c_setnone("gsdt");
        c_setnone("bzxz1");
        return;
    }
    if(document.domain.indexOf("51xiazai.cn") != -1){
        //51xiazai.cn
        w_setnone("a","优先下载金山毒霸");
        return;
    }
})();