汉化基础套件

try to take over the world!

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @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

نووسەر
ChuckIsReady
وەشان
0.2
Created
2017-05-12
Updated
2017-09-25
مۆڵەت
نییە

很方便就可以创建一个网站的汉化脚本
引用这个库
然后简单的一行代码就能完成汉化
上吧少年!

//直接文本替换
//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)