yt-anti-translate icon indicating copy to clipboard operation
yt-anti-translate copied to clipboard

Does not anti-translate descriptions without page reload

Open zpix1 opened this issue 3 years ago • 2 comments

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 avatar Mar 24 '21 17:03 zpix1

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 avatar Oct 03 '21 07:10 artisticfox8

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

artisticfox8 avatar Oct 03 '21 07:10 artisticfox8