Pure_CSDN

净化CSDN

Verze ze dne 07. 03. 2023. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Pure_CSDN
// @namespace   https://blog.csdn.net/*
// @match       https://blog.csdn.net/*
// @grant       none
// @version     0.4
// @author      13号寄信人
// @description 净化CSDN
// @license     MIT
// ==/UserScript==

(function () {
    'use strict';
    let all = []
    //博文左边侧边栏
    all.push(...document.getElementsByClassName("blog_container_aside"))
    //博文分类专栏
    all.push(document.getElementById("rightAside"))
    //博文底部右侧操作栏
    all.push(...document.getElementsByClassName("csdn-side-toolbar"))
    for (let i = 0; i < all.length; i++) {
        let self = all[i]
        self.parentElement.removeChild(self)
    }
    //博文内容居中
    let contentMainBox = document.getElementById("mainBox")
    contentMainBox.style.display = "flex"
    contentMainBox.style.justifyContent = "center"
})();