Commit Graph

13 Commits

Author SHA1 Message Date
ekzyis f2fc06fe01 Put button creation code into function 2022-12-25 03:06:04 +01:00
ekzyis f079c352db Fix double whitespace 2022-12-25 02:58:47 +01:00
ekzyis 76aac85ad4 Fix TypeError if no comment section was found 2022-12-25 02:57:52 +01:00
ekzyis 6f1a38bb7d Prefix logs with 'sn-translator' 2022-12-25 02:57:37 +01:00
ekzyis fb25d27e0d Rerun script on new page 2022-12-25 02:56:39 +01:00
ekzyis f03e98bceb Add semicolons to EOL 2022-12-25 02:41:28 +01:00
ekzyis 315fbece44 Remove unused variable 2022-12-25 02:39:09 +01:00
ekzyis defe6ebc4d Formatting 2022-12-25 02:38:03 +01:00
ekzyis 69dec59a4c Move code into own function 2022-12-25 02:35:05 +01:00
ekzyis b4354a9fdb Detect language 2022-12-25 02:32:49 +01:00
ekzyis cec84c29b0 Add test for auto detection
brotli encoding is used for responses using "auto".
Fortunately, requests will automatically handle it when brotli is installed.
2022-12-24 23:57:58 +01:00
ekzyis 50ccde74b1 Add tampermonkey script 2022-12-24 23:43:53 +01:00
ekzyis f7e68949d1 Use libretranslate.com to translate text 2022-12-24 21:20:37 +01:00