汉化基础套件

try to take over the world!

Tento skript by nemal byť nainštalovaný priamo. Je to knižnica pre ďalšie skripty, ktorú by mali používať cez meta príkaz // @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

Autor
ChuckIsReady
Verzia
0.2
Vytvorené
12.05.2017
Aktualizované
25.09.2017
Licencia
neuvedené

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

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