FUCK CSDN

CSDN 你🐴炸了

Ekde 2018/12/06. Vidu La ĝisdata versio.

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
// @namespace    http://tampermonkey.net/
// @version      1.01
// @description  CSDN 你🐴炸了
// @author       whc2001
// @match        blog.csdn.net/*/article/details/*
// ==/UserScript==

var loop = 0;
var content = null;
var html = document.getElementsByTagName("html")[0];
var head = document.getElementsByTagName("head")[0];
var body = document.getElementsByTagName("body")[0];

var timer = setInterval(function()
{
    try
    {
        var time = document.getElementById("check-adblock-time");
        time.innerHTML = 2147483647;
        // https://stackoverflow.com/questions/3141064/how-to-stop-all-timeouts-and-intervals-using-javascript
        var maxTimerHandle = setInterval(function(){}, 1000);
        for (var i = 0; i < maxTimerHandle; ++i)
            if(i != timer)
                clearInterval(i);
    }
    catch { }
    try
    {
        for(var j = head.children.length - 1; j >= 0; --j)
        {
            var item = head.children[j];
            if(item.tagName != "TITLE" && item.tagName != "META")
                head.removeChild(item);
        }
    }
    catch { }
    try
    {
        content = document.getElementById("content_views").cloneNode(true);
        if(content !== null)
        {
            content.style.padding = "10px";
            html.removeChild(body);
            body = document.createElement("body");
            body.appendChild(content);
            html.appendChild(body);
        }
    }
    catch { }
    if(++loop > 10)
        clearInterval(timer);
}, 500);