您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
优化乌云镜像站点的pre标签,原始超长内容不展示,不方便查看,稍微修改了一下样式.
// ==UserScript== // @name 乌云镜像站点pre美化 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 优化乌云镜像站点的pre标签,原始超长内容不展示,不方便查看,稍微修改了一下样式. // @author Mrxn // @homepage https://mrxn.net/ // @supportURL https://github.com/Mr-xn/ // @license MIT // @run-at document-end // @match https://wy.zone.ci/* // @icon https://wy.zone.ci/favicon.ico // @icon https://www.google.com/s2/favicons?sz=64&domain=zone.ci // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... const all_preelements = document.querySelectorAll('pre'); for (let index = 0; index < all_preelements.length; index++) { // 使用setAttribute方法添加 !important all_preelements[index].setAttribute('style', 'overflow-x: scroll !important;'); // 如果不需要 !important,可以直接赋值 // all_preelements[index].style.overflowX = 'scroll'; } })();