try to take over the world!
此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/29699/220314/%E6%B1%89%E5%8C%96%E5%9F%BA%E7%A1%80%E5%A5%97%E4%BB%B6.js
很方便就可以创建一个网站的汉化脚本
引用这个库
然后简单的一行代码就能完成汉化
上吧少年!
//直接文本替换
//CN([["JavaScript","2333"],["JS","僵尸"],["DOOM","末日"]]);
//指定id元素文本匹配替换
//CNId([["oneElementId","JS","僵尸"],["otherElementId","DOOM","末日"]]);
//指定id元素文本直接替换
//CNIdEasy([["oneElementId","僵尸"],["otherElementId","末日"]]);
//指定Class元素文本匹配替换
//CNId([["oneElementClass","JS","僵尸"],["otherElementClass","DOOM","末日"]]);
//指定Class元素文本直接替换
//CNClassEasy([["oneElementClass","僵尸"],["otherElementClass","末日"]]);
//暂停运行s毫秒
//CNsleep(3000)