Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the popup only in Chinese pages #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

taichimaeda
Copy link

@taichimaeda taichimaeda commented Apr 4, 2024

Hi there, first of all thanks so much for creating this wonderful extension!

As a Mandarin learner myself it has been a great experience using LiuChan, but I sometimes find it inconvenient how the popup shows up even on websites in Japanese, because of the overlap between many Hanzi/Kanji characters.

This PR comes with an option (disabled by default) that uses Chrome API to detect language of the current page, and disables the content script if the language code is neither zh-CN nor zh-TW.

I understand this is no longer actively developed, but it'd be great if you could merge this - it'll be really helpful for Japanese (or Korean) readers!

Also here's some screenshots:

Screen.Recording.2024-04-04.at.21.31.14.mov

This adds an extension option that allows users to opt in
to show the popup only if the browser detects the current page's
language to be Chinese.
This is useful for users who read Japanese or Korean pages
on a regular basis.
@Paperfeed
Copy link
Owner

Hey, so sorry for getting back to you so late. Somehow I completely missed this PR being opened. I will be happy to make a new release with these changes incorporated. I also need to update the manifest to v3.

@taichimaeda
Copy link
Author

taichimaeda commented Aug 16, 2024

Hi apologies for missing your reply for quite some time, it will be great if you can merge this & update the manifest - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants