简化 CSDN

简化 CSDN 博客页面

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

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

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         简化 CSDN
// @namespace    http://js.zombie110year.top/
// @version      1.0
// @description  简化 CSDN 博客页面
// @license      GPL v3
// @author       [email protected]
// @match        *://blog.csdn.net/*/article/details/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

/**
 * MathJax 可正常运行
 */
(function () {
    'use strict';
    //自动展开
    document.querySelector(".btn-readmore").click();
    //去除剪贴板劫持
    csdn.copyright.init("", "", "");
    // 获取博文主体
    let _main = document.querySelector("#mainBox > main");
    document.body = document.createElement("body");
    document.body.append(_main);

    // 重设 样式
    _main.style = "margin: 0px auto 40px auto !important; width: auto !important;";
})();