CSDN去除收费项、免登录复制、免登录查看需关注的内容、沉浸式阅读

1.CSDN去除无用信息沉浸式阅读 2.免登录复制 3.免登录查看需要关注才能看的内容

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

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

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去除收费项、免登录复制、免登录查看需关注的内容、沉浸式阅读
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  1.CSDN去除无用信息沉浸式阅读  2.免登录复制 3.免登录查看需要关注才能看的内容
// @description  更新内容(2023-04-07)==> 1、还原显示付费下载内容  2、删除多余显示项  3、修复部分页面显示问题
// @author       Mr.Chen
// @match        https://blog.csdn.net/*/article/details/*
// @match        https://*.blog.csdn.net/article/details/*
// @match        https://so.csdn.net/*
// @icon         https://www.google.com/s2/favicons?domain=csdn.net
// @grant        GM_addStyle
// @grant        unsafeWindow
// @run-at       document-end
// ==/UserScript==

    // 如果为详情页则去除无用内容,开起沉浸式阅读
    GM_addStyle(`
        .blog_container_aside,#rightAside,.recommend-box,#treeSkill,#blogExtensionBox,#recommendNps,#toolBarBox,.comment-box-old,.insert-baidu-box,.blog-footer-bottom,.blog-footer-bottom,.comment-box,.template-box,.column-group,#csdn-toolbar,.csdn-side-toolbar,#passportbox,.passport-login-container,.hide-article-box{display:none!important;}
        .article_content{height:auto!important} #content_views pre code{user-select:text !important}
    `);

    // 调整主页面大小
    document.querySelector('#mainBox').style.width='100%';
    document.getElementsByTagName('main')[0].style.width='100%'