Greasy Fork is available in English.

Chinese Conversion API

It is a JavaScript library for the conversion of chinese characters between Traditional Chinese (zh-tw) and Simplified Chinese (zh-cn).

Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @require https://update.greasyfork.org/scripts/430412/1057904/Chinese%20Conversion%20API.js

Skapare
𝖢𝖸 𝖥𝗎𝗇𝗀
Version
1.0
Skapad
2021-08-06
Uppdaterad
2022-06-05
Licens
MIT

License

// 翻譯用程式碼來自:
// https://greasyfork.org/zh-TW/scripts/27422
// Tommy Wu
// license: MIT


// 部份程式碼來自:
// https://greasyfork.org/zh-CN/scripts/24300-switch-traditional-chinese-and-simplified-chinese
// homepage: http://hoothin.come
// mail: rixixi@gmail.com
// license: MIT
//
// 轉換對應表來自:
// https://github.com/shyangs/Meihua-Chinese-Converter
// https://addons.mozilla.org/zh-TW/firefox/addon/meihua-chinese-converter/?src=external-github
// license: GPL2

Usage

// @require https://greasyfork.org/scripts/430412-chinese-conversion-api/code/Chinese%20Conversion%20API.js?version=1057894

console.log(ChineseConversionAPI.tc2sc('面皮厚的人愛吃麵包')); //面皮厚的人爱吃面包
console.log(ChineseConversionAPI.sc2tc('面皮厚的人爱吃面包')); //面皮厚的人愛吃麵包

Web App

https://culefa.github.io/tcsc/