Switch Traditional Chinese and Simplified Chinese

Convert between simplified and traditional Chinese characters on any webpage, display the Pinyin for the Chinese characters, customize text replacement.

< Feedback on Switch Traditional Chinese and Simplified Chinese

Question/comment

§
Posted: 2023-04-12

v1.2.6.24v1.2.6.25 有個小錯誤

if (/BR|META|SCRIPT|HR|STYLE/.test(child.tagName.toUpperCase())) continue;

child.tagName 有可能為空

沒看邏輯稍微改了一下

加上 var tagName = child.tagName ?? "";

底下用到 child.tagName 都改為 tagName

hoothinAuthor
§
Posted: 2023-04-13

多謝!已經訂正了。你也可以直接去 github 給我 pr

Post reply

Sign in to post a reply.