Fuck CSDN

Fuck CSDN!

اعتبارا من 05-12-2018. شاهد أحدث إصدار.

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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