Greasy Fork 支持简体中文。

清除 Wolai 的中英文自动间距

清除 Wolai 的中英文自动间距。。。

// ==UserScript==
// @name         清除 Wolai 的中英文自动间距
// @namespace    http://tampermonkey.net/
// @version      2024-08-17-1
// @description  清除 Wolai 的中英文自动间距。。。
// @author       You
// @match        https://www.wolai.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=wolai.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const element = document.createElement('style')
    element.textContent = `
    [data-section-index] span, [data-section-index] span+i {
        padding: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    [data-section-index] {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    #wolai-sidebar,
    #wolai-header-bar,
    .content-editable:not(._2TL9K) {
        font-family: '仓耳渔阳体'
    }
    `
    document.head.appendChild(element)
    console.log('已经清除中英文自动间距')
})();