去除恶心的代码里的字体样式

2022/11/17 上午10:15:52

// ==UserScript==
// @name        去除恶心的代码里的字体样式
// @namespace   leedaisen
// @match       https://pinia.vuejs.org/*
// @grant       none
// @version     1.2.1
// @author      leedaisen
// @description 2022/11/17 上午10:15:52
// ==/UserScript==
function addNewStyle(newStyle) {
            var styleElement = document.getElementById('styles_js');

            if (!styleElement) {
                styleElement = document.createElement('style');
                styleElement.type = 'text/css';
                styleElement.id = 'styles_js';
                document.getElementsByTagName('head')[0].appendChild(styleElement);
            }
            
            styleElement.appendChild(document.createTextNode(newStyle));
        }

 addNewStyle('code {font-family:"monospace" !important;}');

QingJ © 2025

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