Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
Andre Natal 80257b2326
Added option to translate to a target language different than the browser's (#543)
* Make it work with autotranslate

* Fix autotranslate
2022-11-02 13:15:47 -07:00
Andre Natal 4ff61b44e0
Fix and improve language detection (#416)
* Fix and improve language detection
* Fixed linter
* Pass language defined in the html tag to bgscript
* Validate score
2022-06-28 10:58:58 +02:00
Andre Natal d05c483159
Reads just the first 4k of the page's text (#338) 2022-05-20 21:34:05 +02:00
Rob Wu 4bd68cc79f
Clarify shared state of LanguageDetection (#307)
- Remove global LanguageDetection instance from backgroundScript.js,
  so that it is obvious that the pageAction.onClicked listener does
  not depend on any tab-specific state.

- Minimize the amount of data (i.e. wordsToDetect) that is being
  passed back and forth, to only when needed.

Fixes #284
Fixes #296
2022-05-03 11:51:10 -07:00
Andre Natal 2888158cbb
Looks up other languages supported by the browser instead of only the default (#251) 2022-04-13 11:35:50 +02:00
Andre Natal b48bd55c9e
Disable the pageAction functionality is the browser's language is not supported (#219) 2022-04-06 17:00:53 -07:00
Andre Natal cd3d0008d2
Remove the entire onload event handlers from monitorTabLoad (#196)
* Remove the entire onload event handlers from monitorTabLoad

* Fixing linter
2022-03-30 14:15:41 -07:00
Andre Natal 8ca96cdace
Replaces cld by fasttext (#152)
* Replaces cld by fasttext

* fixing linter

* Removing leftovers from other issue

* removing more leftovers

* Adding back csp to the manifest

* Organizing assets better in the right folders

* Make comment about norwegian more clear

* fix typo on comments
2022-03-10 16:51:35 -08:00