FUCK CSDN

CSDN 你🐴炸了

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

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