CSDN复制

CSDN免登陆复制

目前為 2022-09-20 提交的版本,檢視 最新版本

// ==UserScript==
// @name         CSDN复制
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  CSDN免登陆复制
// @author       You
// @match        https://blog.csdn.net/*/article/details/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
    const pre = document.getElementsByTagName('pre')
    const code = document.getElementsByTagName('code')
    for (let i = 0; i < pre.length; i++) {
     pre[i].setAttribute("style","user-select: auto !important")
    }
    for (let i = 0; i < code.length; i++) {
     code[i].setAttribute("style","user-select: auto !important")
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址