Commit graph

57 commits

Author SHA1 Message Date
Bohdan Horbeshko 2f88ef7020 Isolate Sõnaveeb styles&HTML in Shadow DOM 2023-11-02 06:07:50 +02:00
Bohdan Horbeshko c6ce2b8f65 Sõnaveeb: Display clickable candidates for oblique cases 2023-10-31 15:24:48 +02:00
Bohdan Horbeshko eff0d76eae Make use of translationApi setting 2023-10-30 11:37:59 +02:00
Bohdan Horbeshko 289f341029 Properly render Sõnaveeb in translate panel 2023-10-30 09:32:04 +02:00
Bohdan Horbeshko 7d1cd83de7 Sõnaveeb support (only PopupPage yet) 2023-10-12 01:09:02 +03:00
Willian Wang bb372420d7
Replace unload event with visibilitychange (#480)
This should fix bfcache compatibility issues.

https://developer.mozilla.org/en-US/docs/Web/API/Window/unload_event#usage_notes
2023-09-08 22:55:49 +09:00
sienori 353771b15e Fix error not showing on webpage 2022-08-30 23:44:29 +09:00
sienori 46f291275b Change theme class name to complex on web pages 2022-08-30 22:21:12 +09:00
Ilya Popovs eaa57925ff
Add support for System theme - dynamic switching between Light and Dark themes (#405)
* add support for system theme

* add EN texts
2022-08-30 20:33:49 +09:00
sienori e131725796 Fix breaking site's layout 2022-03-03 23:14:55 +09:00
sienori 3eeff8e8b4 Open with DeepL translator on error 2022-03-03 23:11:04 +09:00
sienori cfcb01c93d Support DeepL API 2022-03-03 20:46:48 +09:00
sienori 38e52e3a49 Refactor translate 2022-03-03 16:24:35 +09:00
Denis 953343e663
Fixed mouse event error (TypeError: e.target.closest is not a function) (#355) 2022-03-02 21:16:04 +09:00
def00111 45f83116f6
Fix "Uncaught (in promise) Error: window.getSelection() is null" error (#316)
* Fix "Uncaught (in promise) Error: window.getSelection() is null" error
2022-03-02 21:15:15 +09:00
def00111 b5d5970a85
Fix sendRemoveListener on closed conduit when unloading a page (#312)
* Update simple-translate.js

* Update background.js

* Update manifest.json

* Delete background.js

* Delete manifest.json

* Delete simple-translate.js

* Update index.js
2021-07-07 01:00:39 +09:00
sienori 2bd616e866 Show google translate link on error 2021-05-24 02:21:18 +09:00
Alex Kozack f20990894a
Language definition based on the closest lang attribute (#297)
* Language definition based on the closest `lang` attribute

* Update index.js
2021-04-27 21:41:26 +09:00
sienori 2937233ec6 Refactor content/index.js 2021-03-08 23:54:34 +09:00
sienori 16f423028d Add ignore code tag option 2021-03-08 23:44:54 +09:00
Alex Kozack a1ffd7a44a
Ignore <code> tag (#266)
* refactor: Getting out early will speed things up

* feat: Ignore <code> tags
2021-03-08 23:29:35 +09:00
Alex Kozack 7c953f8244
Add ignored document lang option (#265)
This option allows you to list the locales for which you do not need to
apply translation.
2021-03-08 23:08:07 +09:00
yinonburgansky 6612e49710
Add support for RTL languages (#264) 2021-03-08 20:51:36 +09:00
sienori 56f85ef661 Rename specified key to modifier key 2021-01-07 19:09:12 +09:00
Nutr1t07 a6db23f5fb
Only translate text when specified key pressed (#254) 2021-01-07 18:37:07 +09:00
sienori e4dcd6eb43 Remove color definitions from :root 2021-01-06 02:12:26 +09:00
sienori 4f36b77890 Refactor content panel dragging 2019-10-20 21:50:14 +09:00
fluks a758039fe4 Make content panel movable (#183)
Let the user move the content panel. It can be moved by grabbing the
blue bar on top.
2019-10-20 20:50:12 +09:00
sienori 4a6f907c73 Add option to disable translation in text fields 2019-10-20 19:14:48 +09:00
sienori 6f43d626f0 Fix text in iframe not getting from popup 2019-10-20 18:58:27 +09:00
sienori c78a27a7e0 Insert code into html only when translating text 2019-10-20 17:26:48 +09:00
sienori 85bd5abd06 Revert "Add debug log to insert / remove element"
This reverts commit 8015eacce7.
2019-05-03 18:56:12 +09:00
sienori 8015eacce7 Add debug log to insert / remove element 2019-05-03 17:12:10 +09:00
sienori 6104cd7f55 Allow wildcards in the URL list 2019-05-03 16:22:29 +09:00
sienori 9dccb8e20c Fix not working in cross domain iframe 2019-05-03 05:23:55 +09:00
sienori 68a7f7456c Add option of URL list to disable working on the web page 2019-05-03 04:43:59 +09:00
sienori 35636fadbc Fix not working on Chrome 2019-05-02 23:36:27 +09:00
sienori ce6f96454b Add function to enable / disable elements on the page 2019-05-02 17:33:29 +09:00
Ne1s07 1cd9da3873 Fix the inserted <div> covering origin content (#151)
When inserting <div> after <body> element, it will create a new <body> to contain the new <div> element. This may cause part of the origin website content to be covered. So just use `beforeend` instead of `afterend` to avoid that.
2019-05-02 12:54:38 +09:00
sienori 5c70010595 Fix unseparating line of text in panel 2019-03-22 00:15:55 +09:00
sienori ab9b3bd0d1 Fix not working on some pages 2019-03-21 17:28:08 +09:00
sienori 17f5a81c17 Fixed that translate panel is not resized 2019-02-24 05:18:23 +09:00
sienori a18a51c294 Fix to not embed images in content 2019-02-24 05:08:26 +09:00
sienori a90ef23f6a Fix problems that could not get parent url and selected text in iframe 2019-02-23 22:10:18 +09:00
sienori 53509a149a Add option to change to second lang on web page 2019-02-23 18:45:27 +09:00
sienori 13739980f6 Fix panel width 2019-02-23 18:44:43 +09:00
sienori ba7f3c01e5 Delete unnecessary code 2019-02-23 18:03:56 +09:00
sienori dc69034125 Add options of display position offset 2019-02-23 17:42:46 +09:00
sienori 479e3164bb Add options of panel display position 2019-02-23 17:33:14 +09:00
sienori 9571e98671 Do not show button when symbol is selected 2019-02-23 03:53:34 +09:00