Fuck CSDN

Fuck CSDN!

Från och med 2018-12-05. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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