CSDN Fucker

Fuck up all shit on CSDN

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         CSDN Fucker
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Fuck up all shit on CSDN
// @author       LYUJ
// @match        https://blog.csdn.net/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    // solve the folding problems
    var folding = document.querySelector("main")
    if(folding != null){
        folding.querySelector(".article_content").setAttribute("style", "none")
    }
    // fuck up the adv
    var adv = document.querySelector(".csdn-toolbar")
    if(adv != null){
        adv.remove()
    }
    // Fuck up the black mask shit
    var darkMask = document.getElementsByClassName('mask-dark')
    if(darkMask != null){
        darkMask[0].remove()
    }
    // Expand comments and fuck up the expand button
    var comments = document.getElementsByClassName('comment-list-box')
    if(comments != null){
        comments[0].setAttribute("style", "none")
    }
    var expandShit = document.getElementById('btnMoreComment')
    if(expandShit != null){
        expandShit.parentElement.remove()
    }
})();