您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
练习脚本
// ==UserScript== // @name CSDN优化体验 // @description 练习脚本 // @namespace Violentmonkey Scripts // @match *://blog.csdn.net/*/article/details/* // @match *://*.blog.csdn.net/article/details/* // @match *://bbs.csdn.net/* // @match *://www.csdn.net/* // @grant none // @version 1.1.1 // @author amateur // @description 2021/3/3 上午11:03:33 // ==/UserScript== window.onload = function() { // 登录窗口 let login = document.querySelector('#passportbox'); if(login) { login.setAttribute('display', "none"); } // 黑背景 let mark = document.querySelector('.login-mark'); if(mark) { mark.setAttribute('display', "none"); } let codes = document.querySelectorAll('code'); for(const code of codes ) { code.setAttribute('onclick', ''); // console.log(code.innerText); } }