Fuck CSDN

Fuck CSDN!

Stan na 05-12-2018. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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...
})();