CSDN Fucker

Fuck up all shit on CSDN

Stan na 28-02-2021. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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