CSDN Fucker

Fuck up all shit on CSDN

28.02.2021 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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