commit | 86fda494fcf23dc67548b5bb0aa01791f69cf59c | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Tue May 31 15:05:21 2022 +0200 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Tue May 31 15:30:35 2022 +0200 |
tree | a821c1a5aa3addce2a3e1f69a37aeb3721ab710e | |
parent | ec599347780d90f9ee0d5d9db08c6aa6cecae91d [diff] |
Add initial MV3 support In order to prepare the migration towards Manifest Version 3, this change adds a MV3 browser target for Chromium (chromium_mv3) and another one for Edge (edge_mv3), which will build the extension using MV3. This CL also changes several things to fix some bugs in the MV3 version of the extension: - Adds //src/common/actionApi.js to target |chrome.browserAction| (MV2) and |chrome.action| (MV3) accordingly using the version-agnostic object |actionApi|. - Adds //src/common/sessionStorage.js to wrap the |chrome.storage.session| object in the case of MV3, and polyfill it in the case of MV2. (The polyfill isn't perfect, since it stores the data under the window object of the current page, so different pages will have access to completely different storage areas, which are cleared once the page is closed, not once the extension stops running. However, this is fine for our case.) As of now, the extension built with MV3 might have bugs. Thus, the MV3 variant will not be used for builds until it has been stabilized. Bug: translateselectedtext:4 Change-Id: Ib525339c055237b32b7352c490fee86b21555ed6
The source code of the Chrome "Translate Selected Text" extension.
If you want to help bring this extension into your native language, you can, and I would really appreciate it! Just go to the following website and start translating :)
Please, report any bugs or feature sugestions at GitHub: https://github.com/avm99963/translateselectedtext/issues
As this extension has so many users, I've decided to upload a Beta version of the extension to the Chrome Web Store so I can test it before uploading any update to the stable version! This way I can make sure that the stable version of the extension is 100% bug-free.
If you want to test the bleeding edge of this extension before everybody else, join the Google Group and download the extension (there may be bugs, you've been warned):
Special thanks to: