Commit graph

286 commits

Author SHA1 Message Date
Huey
a233519c36
fix: limit mutationobserver scope 2022-11-23 12:54:54 +08:00
Huey
bf2360f32b
fix: jsdoc comment 2022-11-22 10:35:15 +08:00
Huey
a594e53d71
address comments 2022-11-22 10:34:23 +08:00
Huey
3c6d43b598
feature: inject event listeners mimicking <v4 interaction button functionality on v4 Mastodon instances 2022-11-21 12:28:16 +08:00
Huey
497b8a2c78
Merge branch 'master' into feature/support_v4 2022-11-20 14:27:22 +08:00
Huey
5b813dacf8
Merge pull request #1 from nrichards/feature/support_v4 2022-11-20 14:25:36 +08:00
Nick Richards
f1f27f6286 Address comment-format findings by @rugk 2022-11-19 20:44:07 +00:00
Huey
ec7c7ad467
fix: capitalisation in jsdoc 2022-11-18 12:40:29 +08:00
Huey
4d5c4a5904
fix: formatting and address other review comments 2022-11-18 12:38:33 +08:00
Huey
e9c16cad10
chore: additional stylistic fixes 2022-11-17 09:53:06 +08:00
Huey
f41edcb756
fix: remove version-checking code 2022-11-17 09:48:50 +08:00
Huey
9a1f476a0b
chore: fix stylistic issues 2022-11-17 09:29:31 +08:00
rugk
1d7c6a048a
Add changelog entry/credit for zh-TW translation by ryanho 2022-11-16 20:38:33 +01:00
rugk
b71d5f9c3c
Merge pull request #80 from ryanho/master
add Traditional Chinese (Taiwan) translation
2022-11-16 20:35:31 +01:00
Huey
b61dbc4a57
feat: inject content script to handle follows from remote v4 Mastodon instances 2022-11-16 23:03:15 +08:00
Ryan Ho
0d9d3cf109 Update CONTRIBUTORS.md
add credit text
2022-11-11 08:05:03 +08:00
Ryan Ho
691dc2707e Update messages.json
modify credit text in messages.json
2022-11-11 08:03:35 +08:00
Ryan Ho
3ba395feb4 Revert "Update CONTRIBUTORS.md"
This reverts commit 362e086298.
2022-11-11 08:00:08 +08:00
Ryan Ho
3234064410 Revert "Update messages.json"
This reverts commit b8390e7f80.
2022-11-11 07:59:54 +08:00
Ryan He
362e086298 Update CONTRIBUTORS.md
add credit text
2022-11-09 09:35:10 +08:00
Ryan He
b8390e7f80 Update messages.json
modify credit text in messages.json
2022-11-09 09:32:11 +08:00
Ryan Ho
45dd4820fe Create messages.json
add translations for 'zh-TW': Chinese (中文 (Zhōngwén), 汉语, 漢語), Taiwan, Province of China
2022-11-08 22:42:00 +08:00
rugk
b7259e0baa
chore: use new GitHub URL for used user-agent 2022-06-26 14:44:51 +02:00
rugk
cbec587aa5
style: fix minor spelling/text issues in 1.4 release notes 2022-06-26 14:44:44 +02:00
rugk
83b59999a1
Add new screenshot of settings 2022-06-26 14:19:35 +02:00
rugk
b50147f71c
chore: bump version number to v1.4 2022-06-26 14:11:23 +02:00
rugk
dc1313f2a8
Revert wte locale change in message-json too, for proper display should be like this here 2022-06-18 15:33:20 +02:00
rugk
1829761be7
Remove untranslated files 2022-06-18 15:26:18 +02:00
rugk
26fdde940f
Merge branch 'paulo-roger-master' 2022-06-18 15:24:23 +02:00
rugk
913bac5455
Add changelog entry for Brazilian portuguese translation 2022-06-18 15:22:09 +02:00
rugk
d91d1ba6f8
Use correct pt_BR code for all other files, too 2022-06-18 15:15:23 +02:00
rugk
838ce9b7b0
Rename/use correct code for pt_BR 2022-06-18 15:14:11 +02:00
rugk
53072003e8
Merge branch 'master' of https://github.com/paulo-roger/mastodon-simplified-federation into paulo-roger-master 2022-06-18 15:12:50 +02:00
rugk
0eed6b4ff2
Add German translation for Changelog 2022-06-18 15:09:43 +02:00
rugk
770ca4b569
Use current changes/changelog for v1.4 2022-06-18 15:04:24 +02:00
rugk
18ea69a4c4
Update changelog entries for new Mastodon API fixes
See https://github.com/rugk/mastodon-simplified-federation/issues/71
2022-06-18 15:03:19 +02:00
rugk
62ddbf0772
Merge pull request #72 from rugk/mastodonfix
fix: properly fallback in case of error/rejection of one Toot-ID getting method
2022-06-18 14:49:42 +02:00
rugk
0d3d216660
Switch to working Firefox download badge icon 2022-06-12 21:46:00 +02:00
rugk
f0e2989b64
doc: clarify which popup/page is meant
+ the time at which the fallback jumps in (i.e. it needs to wait for page rendering)
2022-06-12 21:42:49 +02:00
rugk
5558366390
style: add note for future browser compatibility 2022-06-12 21:34:37 +02:00
rugk
8a282fe1de
fix: properly fallback in case of error/rejection of one detection method
To implement such a fallback mechanism the extension races two promises against each other here, which have these two methods implemented:
e34050284b/src/background/modules/Detect/Mastodon.js (L164)

[Promise.race](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race) just has the [issue that it also rejects as soon as a promise rejects, i.e. errors](https://stackoverflow.com/questions/70747069/why-does-promise-race-fulfill-with-an-unfulfilled-promise).
That's actually not what we want. That works, as long as the success comes _before_ the error, but if the error is instant (which is nearly always the case here because the JSON API is faster than website scraping), then it fails.

We want to ignore errors. I.e. I found [something like this SO questions asks for](https://stackoverflow.com/questions/37234191/how-do-you-implement-a-racetosuccess-helper-given-a-list-of-promises), which [points to the modern browser-implemented solution](https://stackoverflow.com/a/60274215/5008962) called [`Promise.any`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/any).

Also needs bumping the Firefox version, but that is not a problem, as that version is really old enough to not be supported anymore. :D
2022-06-12 21:13:25 +02:00
rugk
809773f0ca
feat: add 5s timeout for network requests 2022-06-12 21:09:55 +02:00
rugk
62905a913c
style: add missing JSDoc 2022-06-12 19:11:02 +02:00
rugk
ad8efcbc75
Add changelog for French translation update
Credit goes to @le-jun
2022-05-13 11:08:28 +02:00
rugk
019b491aca
Merge pull request #69 from le-jun/patch-2
Updated french localization
2022-05-13 11:06:16 +02:00
paulo-roger
62467e4bf5
Update assets/texts/pt-br/amoDescription.html
Co-authored-by: Cleyson Reinhold <cleyson.reinhold@gmail.com>
2022-05-12 18:41:38 -03:00
paulo-roger
72aa2c1f30
Update assets/texts/pt-br/permissions.md
Co-authored-by: Cleyson Reinhold <cleyson.reinhold@gmail.com>
2022-05-12 18:40:45 -03:00
LeJun
7572bfc333
Kept "avec" and "personnes"
"Avec" is necessary for the sentence to make more sense while "personnes" is more inclusive word than "utilisateurs"
2022-05-10 06:03:53 +02:00
paulo-roger
c358fe3fba
Update assets/texts/pt-br/Changelog/1.3.html
Co-authored-by: rugk <rugk+git@posteo.de>
2022-05-07 11:26:14 -03:00
paulo-roger
598d3a0be1
Update assets/texts/pt-br/Changelog/1.3.html
Co-authored-by: rugk <rugk+git@posteo.de>
2022-05-07 11:26:01 -03:00