// ==UserScript== // @name 中英文自动加空格(盘古之白) // @name:zh-CN 中英文自动加空格(盘古之白) // @name:en Pangu Spacing — Auto Space Between CJK and Latin Text // @namespace https://github.com/yilecoding/helper-scripts // @version 2025.10.17.10 // @description 在网页里的中日韩文字与英文字母、数字之间自动加上空格(盘古之白),只改文字节点,不动页面结构。 // @description:zh-CN 在网页里的中日韩文字与英文字母、数字之间自动加上空格(盘古之白),只改文字节点,不动页面结构。 // @description:en Automatically inserts a space between CJK characters and Latin letters / digits on any web page. Only text nodes are touched; the page structure is left alone. // @author 壹樂(V:ita1125) // @match http://*/* // @match https://*/* // @noframes // @grant GM_getValue // @grant GM_setValue // @grant GM_registerMenuCommand // @grant GM_unregisterMenuCommand // @license MIT // @run-at document-idle // @homepageURL https://github.com/yile2020/helper-scripts // @supportURL https://github.com/yile2020/helper-scripts/issues // @updateURL https://raw.githubusercontent.com/yile2020/helper-scripts/main/pangu-spacing/pangu-spacing.user.js // @downloadURL https://raw.githubusercontent.com/yile2020/helper-scripts/main/pangu-spacing/pangu-spacing.user.js // ==/UserScript== // 脚本持续更新维护,欢迎 star / watch 仓库获取最新版本: // https://github.com/yile2020/helper-scripts (function () { 'use strict'; /** 日志前缀。控制台过滤框输入「盘古」只看本脚本。 */ const TAG = '[盘古之白]'; // ========================================================================= // 配置 // ========================================================================= const CONFIG = { debug: false, /* * 这些元素整棵子树都不处理。 * select / option / datalist 也得跳: