为了 SteemIt 开发了一个 中文简体和繁体自动切换的Chrome浏览器插件 Chrome Extension to Switch between Simplified Chinese and Traditional Chinese Automatically

in #cn7 years ago (edited)

I wrote this Simple plugin to switch between Simplified Chinese and Traditional Chinese automatically. I have known many friends on steemit who use Traditional Chinese (BIG5 or ZH-TW). However, I am not so comfortable with reading Traditional Chinese. Therefore, this plugin automatically converts traditional Chinese to simplified Chinese automatically or vice versa.

For example, 

English:  I love you!

Simplified Chinese: 我爱你!

Traditional Chinese:  我愛你!

Open source, feel free to create PR to improve this!  https://github.com/DoctorLai/Simplified-and-Traditional-Chinese

Chrome Extension: https://chrome.google.com/webstore/detail/%E7%AE%80%E7%B9%81%E9%AB%94-simplified-and-tradit/olpihmabpjpllgmahlgiakkgaccigpfo

最近在玩SteemIt, 发现很多 cn 社区的中国朋友(特别是台湾 香港还有其它一些海外同胞) 比较喜欢用繁体字, 虽然我们都能看懂繁体, 或者都能看懂简体中文, 但是有时候还是会吃力 觉得累, 有没有方法能自动转换页面呢? 你也许可以用Google Translate, 但是 Google Translate 会在页面上方显示一个翻译栏, 毫无违和感. 

 我有点小强迫, 于是搞了一小时, 整出这么一个玩意: Chrome 浏览器插件: 简繁体 Simplified and Traditional Chinese. 这玩意的好处是 离线也能用(不用联网访问Google Translate), 而且不会在页面的任何地方显示信息, 真正做到润物细无声. 

 

简繁体网页转换方法

您需要使用Chrome浏览器, 然后到网官上去安装插件.   https://chrome.google.com/webstore/detail/%E7%AE%80%E7%B9%81%E9%AB%94-simplified-and-tradit/olpihmabpjpllgmahlgiakkgaccigpfo

 安装完会有一红色国旗图标, 点击后 默认是不转换

然后有三个选项: 

 选择 第二个选项 (ZH-CN) 强行转换成简单中文, 选择第三个选项 (ZH-TW) 强行将当前网页转换成繁体中文. 这些选项会保存于浏览器中直到下次更改. 

 需要注意的是, 转换是在页面加载的时候进行 (document_idle), 所以您需要刷新 (F5) 才能转换当前已经加载后的页面, 不过对于新的页面则会自动转换, 有时候没有转换可能需要等待一会, 如果没有的话, 请按F5刷新再试.

比如 @tumutanzi 的主页被转换成繁体. 

有啥好的建议或者BUG都 @justyy 吧! 

源代码开源于 Github

Originally published at https://steemit.com Thank you for reading my post, feel free to FOLLOW and Upvote @justyy which motivates me to create more quality posts.

原创首发于 https://steemit.com 非常感谢阅读, 欢迎FOLLOW和Upvote @justyy  能激励我创作更多更好的内容.   

// 已同步到我的中文博客 英文 博客。 

近期热贴 Recent Popular Posts 

Sort:  

Not of my use as I don't use chinese language but for the Steemit community it's very helpful, so thanx for sharing this. upvote and Follow from my side. :)

Thank you!

我好奇的是,简体/繁体的字库或数据库从哪来的?

I see 原来不需要用库的哈哈,原谅我的无知

没事。你很可爱。

多谢大哥,哈哈。

这个小插件还是比较实用的,平常我看繁体中文还是有点吃力,虽然大部分都能看懂,但还是没有看简体中文舒服。

多谢肯定

This will be a good way to bridge both traditional and simplified Chinese post!! 加油!! Thank you @justyy~

Thanks.. 一起加油!

比较喜欢用繁体字

很有用的插件!但上面的敘述有點問題,不是我們喜歡,是我們本來就用。

多谢指正。

虽然简体繁体都能看懂也不吃力
不过这依然是个很好的小插件
👍

玩 steem 两件事最高兴, 一是能得到 @abit @tumutanzi 等大牛 的翻牌, 二是能得到 O 哥的肯定。O哥一肯定,一天都高兴 :)

看繁体有点吃力。

我也是。总觉得大脑太过于负担了

Nice programming to switch between simplified to traditional chineese.

这是年轻一群需要的。:-)

还好 简体和繁体 互相都好理解,只是阅读习惯的问题

Congratulations @justyy! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Thanks... but I still prefer SBD, instead of showing this award.

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 58679.35
ETH 3155.04
USDT 1.00
SBD 2.44