简化 CSDN

简化 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 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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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