Fuck CSDN

Fuck CSDN!

Verze ze dne 05. 12. 2018. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name          Fuck CSDN
// @version       0.2
// @description Fuck CSDN!
// @author        流星暴雨
// @grant          none
// @match         http*://blog.csdn.net/*
// @namespace Eternal
// ==/UserScript==

(function() {
    'use strict';
    $("#article_content").css("height",'');
    $(".hide-article-box").remove();
    $(".fourth_column").remove();
    window.setInterval_=setInterval;
    var timer;
    var mysetInterval=function (fun,time){
        if((fun+'').match("#check-adblock-time")){
            //$(".adblock").remove();
            //"function" == typeof window.csdn.insertcallbackBlock && window.csdn.insertcallbackBlock();
            /*timer=setInterval_(function (){
                if($(".check-adblock-bg").size()>0){
                    clearInterval(timer);
                    $(".check-adblock-bg").parent().remove();
                }
            },10);*/
            return null;
        }else{
            return setInterval_(fun,time);
        }
    }
    document.body.insertBefore_=document.body.insertBefore;
    var myinsertBefore=function (ele,box){
        if(ele.innerHTML.match("ADP")||ele.innerHTML.match("广告")){
            return document.body;
        }else{
            return document.body.insertBefore_(ele,box);
        }
    };
    document.body.insertBefore=myinsertBefore;
    setInterval=mysetInterval;
    console.log("Fuck CSDN!")
    // Your code here...
})();