Greasy Fork

Greasy Fork is available in English.

中关村,下载之家去除高速下载,页面广告优化

去除中关村与下载之家的软件下载详情页面高速下载通道(非常恶心的东西)以及页面的广告。

当前为 2021-08-01 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         中关村,下载之家去除高速下载,页面广告优化
// @namespace    http://tampermonkey.net/
// @include      https://softdown.fengcv.cn/
// @version      0.1.3
// @description  去除中关村与下载之家的软件下载详情页面高速下载通道(非常恶心的东西)以及页面的广告。
// @author       Jason
// @match        *://softdown.fengcv.cn/*
// @match        *://www.downza.cn/*
// @icon         https://icon.zol-img.com.cn/mainpage/2019logo/logo-fengcv.png
// @grant        none
// ==/UserScript==
// @updateURL    https://gitee.com/XiaoLang147258/oil-monkey-script/raw/master/removeGaosu.js
(function() {

    function remove(document){
          if(document==undefined||document==null){
               return false
          }else{
              document.remove()
          }
    };

    let tobotton = (top,left)=>{
        let body = document.getElementsByTagName('body')[0];
        let div = document.createElement("div");
        div.style.cssText =
            'width:120px;height:50px;line-height:50px;' +
            'text-align:center;position:absolute;top:'+top+'px;' +
            'left:'+left+'px;background:#67C23A;border-radius:5px;' +
            'font-size:15px;color:white';
        div.innerText = '直达至最底部';
        body.append(div);
        div.addEventListener('click', ()=>{
            window.scrollTo(0,document.documentElement.offsetHeight-window.innerHeight);
        })
    }

    //*://softdown.fengcv.cn/*
    let box_top_xiazai = document.getElementsByClassName("box-top-xiazai")[0]
    if(box_top_xiazai){
        window.setTimeout(()=>{remove(document.getElementsByClassName("fast-down-btn")[0])},500);
        remove(box_top_xiazai);
        remove(document.getElementsByClassName("recommend-soft-box")[0]);
        remove(document.getElementsByClassName("down-right")[0]);
        remove(document.getElementsByClassName("shandian-software")[0]);
        remove(document.getElementsByClassName("base-right-pic")[0]);
        remove(document.getElementsByClassName("sidebarNav")[0]);
        remove(document.getElementById("zolGlobalFooter"));
        remove(document.getElementById("nowDown"));
    }

    //*://www.downza.cn//*
    let guess_head = document.getElementsByClassName("guess_head")[0]
    if(guess_head){
        tobotton(400,660);
        remove(guess_head);
        remove(document.getElementsByClassName("pull-right")[0])
        remove(document.getElementsByClassName("fixed_btn_box")[0])
        remove(document.getElementsByClassName("side-down3")[0])
        remove(document.getElementsByClassName("links")[0])
        remove(document.getElementsByClassName("share")[0])
        remove(document.getElementsByClassName('pc-down_relenews')[0])
        remove(document.getElementsByClassName('recommend-baidu')[0])
        remove(document.getElementsByClassName('main-r_box')[0])
        remove(document.getElementsByClassName('softking')[0])
        remove(document.getElementsByClassName('alsodownload')[0])
        remove(document.getElementsByClassName('ads')[0])
        remove(document.getElementsByClassName('relever')[0])
        remove(document.getElementsByClassName('feedback')[0])
        remove(document.getElementsByClassName('down_remove')[0])
        remove(document.getElementsByClassName('small-video')[0])
        remove(document.getElementsByClassName('pc-down_special')[0])
        remove(document.getElementsByTagName('footer')[0])
        remove(document.getElementById("m_tags"))
        remove(document.getElementById("m_rjjx"))
    }

    //*://?????//*

})();