feat: 支持 railtyping.com 日语版 (/ja) - #1
Open
greycodee wants to merge 1 commit into
Open
Conversation
- manifest 匹配 https://railtyping.com/ja 与 /ja/*(仅 /ja/* 匹配不到 /ja 首页本身,故成对声明) - content.js 新增 SITE_SKIP_SELECTORS,按域名声明免注音区域;railtyping 游戏站牌 section.board 自带 かな/漢字/ローマ字,跳过以免读音重复并撑破布局 - popup 支持站点判断改为多规则匹配,文案同步 - 扩展更名为「Yomigana 日语注音」,版本 1.1.0 - README / 隐私政策 / 商店文案同步更新(原「不读取 note.com 以外网站」 的表述已与实际行为不符) Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
为 railtyping.com(电车打字练习站)的日语版页面添加注音支持。
改动
匹配范围
content_scripts.matches新增https://railtyping.com/ja与https://railtyping.com/ja/*/ja/*匹配不到/ja首页本身web_accessible_resources.matches按源声明https://railtyping.com/*(仅用于授权页面读取词典)站点特定跳过规则
content/content.js新增SITE_SKIP_SELECTORS,按域名声明免注音区域,在isSkippable()中生效。railtyping 的游戏站牌
section.board本身就同时显示おもてさんどう/表参道/OMOTE-SANDO/ 待输入罗马音串。若不跳过,注音会让读音重复出现,且实测会把站牌高度从 64px 撑到 86px、字距散开,破坏原有版式。其他
1.0.0→1.1.0测试
node test/pipeline.test.js— 26 项全部通过(本次未触及注音管线本身)已知限制
/ja/lines→/lines不重载页面),且英文版在根路径。从英文页切到日文页时内容脚本不会注入。已记入 README 已知限制。/ja?utm=xxx),可再补一条https://railtyping.com/ja?*🤖 Generated with Claude Code