Commit graph

177 commits

Author SHA1 Message Date
nachtjasmin
f7c09f4a7b
Simplify hasClasses 2023-05-26 00:22:36 +02:00
chloe-the-catgirl
bc68af7a94 Format files using prettier 2023-05-25 22:20:11 +00:00
nachtjasmin
7ff393afbc
Add license
Closes #11.

Co-authored-by: Vivien <vivienvielva@gmail.com>
2023-05-26 00:19:32 +02:00
ItsVipra
d58fcdd412 Format files using prettier 2023-05-25 22:07:41 +00:00
Vipra
e75051b509 Merge branch 'main' of https://github.com/ItsVipra/ProToots 2023-05-26 00:07:14 +02:00
Vipra
1a6186a6db add original icon
closes #9
2023-05-26 00:05:41 +02:00
chloe-the-catgirl
4e0cf7a676 Format files using prettier 2023-05-25 22:02:38 +00:00
nachtjasmin
44b8d8c81b
Refactor the usage of the observer
Instead of having multiple observers, the number got reduced to two. One
is listening on the document itself, the other one is watching the
columns.

If a column is added or removed, the document observer is tracking the
new column. The shared column observer in comparison is waiting for new
posts to arrive.
2023-05-26 00:00:47 +02:00
Vivien
87575a66ce
Merge pull request #22 from ItsVipra/pronoun-sanitizer
Sanitize pronouns, render them as HTML
also closes #19
2023-05-25 19:31:16 +02:00
nachtjasmin
2e714b5498
Render pronoun badge as HTML
This enables external links, e.g. to pronouns.page and automatically
handles the &amp; case.
2023-05-25 18:43:26 +02:00
nachtjasmin
a009451ef6
Add function for stripping custom emojis
See #19
2023-05-25 18:42:46 +02:00
Vivien
6c023bb6cc
Merge pull request #17 from ItsVipra/local-only-changes
Fix URL building for local-only test instances
2023-05-25 18:04:05 +02:00
Vivien
beb1a257a9
Merge pull request #18 from ItsVipra/system-ui-for-popup
Set the font-family to system-ui
2023-05-25 17:55:11 +02:00
nachtjasmin
013f8a7bc3
Use try/catch for fetching the logging option 2023-05-25 17:41:55 +02:00
nachtjasmin
35011337f4
Pass the logging arguments as variadic ones 2023-05-25 17:41:31 +02:00
nachtjasmin
9ed3aeaad6
Set the font-family to system-ui
Shamelessly stolen from: https://modernfontstacks.com/
2023-05-25 17:33:39 +02:00
nachtjasmin
ea3f16b734
Use the current protocol instead of https by default
Especially if you test the plugin on a local Mastodon instance, it's
going to fail because of this line.
2023-05-25 17:24:24 +02:00
nachtjasmin
f5a2289afd
Rewrite the cache functionality
The previous method was working most of the times, but not always.
Especially during the tests with blank browser profiles, it happened
multiple times to me that the could not been read, because it didn't
exist yet.

I've rewritten the cache-based functionality to always have an empty
fallback. Furthermore, the .then() chains were rewritten to use the
try/catch pattern.
2023-05-25 17:17:43 +02:00
nachtjasmin
fe412ded8b
Include port number in requests 2023-05-25 16:51:42 +02:00
nachtjasmin
5fcbc35766
Add GitHub Action for automatic formatting 2023-05-25 15:45:06 +02:00
nachtjasmin
c9dc31ed3f
Format all files with prettier 2023-05-25 15:37:24 +02:00
nachtjasmin
8fefb8fb69
Merge .prettierrc into package.json 2023-05-25 15:35:33 +02:00
Vivien
86342b7730
Update extension ID closes #6 2023-05-25 10:38:36 +00:00
Vivien
c9eb0e400a
Update README.md 2023-05-24 18:05:34 +00:00
Vivien
634b0762bd
Update README.md 2023-05-24 17:20:01 +00:00
Vivien
fcd44e6141
Update README.md 2023-05-24 17:18:21 +00:00
Vipra
1e5e338c08 initial commit 2023-05-24 18:47:04 +02:00