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

Does not anti-translate descriptions without page reload #2

Open
zpix1 opened this issue Mar 24, 2021 · 2 comments
Open

Does not anti-translate descriptions without page reload #2

zpix1 opened this issue Mar 24, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@zpix1
Copy link
Owner

zpix1 commented Mar 24, 2021

If you click on another video, youtube loads it without full reload. Then anti-translation doesn't work.

I don't know how to fix it, because there is no way to get original description for video loaded that way.

@zpix1 zpix1 self-assigned this Mar 24, 2021
@zpix1 zpix1 added the bug Something isn't working label Mar 24, 2021
@artisticfox8
Copy link
Contributor

If you click on another video, youtube loads it without full reload. Then anti-translation doesn't work.

I don't know how to fix it, because there is no way to get original description for video loaded that way.

You can send the original description to the background script and retrieve it later. Check out https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/sendMessage

@artisticfox8
Copy link
Contributor

The link is from Firefox docs, but it works the same in Firefox and Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants