CSDN 免登陆复制代码

CSDN 免登陆复制代码(示例)

// ==UserScript==
// @name         CSDN 免登陆复制代码
// @description  CSDN 免登陆复制代码(示例)
// @namespace    http://tampermonkey.net/
// @version      0.5
// @author       You
// @match        https://blog.csdn.net/*
// @match        https://*.blog.csdn.net/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=limbopro.com
// @run-at       document-end
// @grant        none
// @license      MIT
// ==/UserScript==

//document.designMode = "on"

function cssAdd(i) {
    var create_Element = document.createElement("style");
    create_Element.innerHTML = i;
    document.getElementsByTagName('head')[0].appendChild(create_Element)
}
var newstyle = "#content_views pre, #content_views pre code {user-select: text !important} .weixin-shadowbox.wap-shadowbox,.passport-login-container,.passport-login-mark, iframe {display: none !important}"
cssAdd(newstyle);