解除csdn博客部分限制

解除csdn部分限制,如复制、无法阅读整篇文章等

// ==UserScript==
// @name         解除csdn博客部分限制
// @namespace    http://tampermonkey.net/
// @version      2024-08-06
// @description  解除csdn部分限制,如复制、无法阅读整篇文章等
// @author       chen
// @match        https://blog.csdn.net/*
// @icon         https://g.csdnimg.cn/static/logo/favicon32.ico
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var style = document.createElement('style');
    style.innerHTML = `
        * {
        user-select: text !important;
        }
    `;
    document.head.appendChild(style);
    $("#content_views").unbind("copy");
    if (document.querySelector(".hide-article-box")!=null){
        $("#article_content").css("height","auto");
    }
})();