Commit graph

144 commits

Author SHA1 Message Date
nachtjasmin
5757905f08 Disable console.log statements except for logging.js 2023-06-21 15:14:36 +02:00
Vivien
8be9fde3d5
Merge pull request #32 from ItsVipra/support-for-javascript-modules
Add `esbuild` for JavaScript Bundling
2023-06-14 18:40:53 +02:00
ItsVipra
dff873958d we do a little refactoring
as a treat
2023-06-14 18:20:21 +02:00
ItsVipra
2e0f4ebcb0 normalise account names globally 2023-06-14 18:20:01 +02:00
nachtjasmin
97c82f6d26
Improve rainbow gradient of .proplate-pog 2023-05-31 14:41:19 +02:00
nachtjasmin
a0c5bfc64c
Rename "arguments" to "args" because of failing strict mode 2023-05-30 18:44:54 +02:00
nachtjasmin
53e960d330
Add the webextension-polyfill as example usage of imports 2023-05-30 18:44:54 +02:00
ItsVipra
9e1fee8ec4 update version number and readme 2023-05-29 10:19:55 +02:00
ItsVipra
fd5f8842de Merge branch 'main' of https://github.com/itsvipra/protoots 2023-05-28 18:04:06 +02:00
ItsVipra
137cd7a607 close #29 2023-05-28 18:04:02 +02:00
ItsVipra
98cee5b8ed Format files using prettier 2023-05-28 10:24:20 +00:00
ItsVipra
74daa5d94a Merge branch 'main' of https://github.com/itsvipra/protoots 2023-05-28 12:23:50 +02:00
ItsVipra
645c336651 update version number 2023-05-28 12:22:46 +02:00
ItsVipra
c0f00aa45d add a little fade in to proplates :3 2023-05-28 12:00:12 +02:00
Vivien
5d2ce79812
Merge pull request #20 from ItsVipra/logging-with-variadic-arguments
Fix logging arguments
2023-05-27 21:23:36 +02:00
ItsVipra
9e959a8ab8 add style for glitch-soc default theme 2023-05-27 20:49:02 +02:00
ItsVipra
9beec2f798 fix cache initialization 2023-05-27 20:48:41 +02:00
ItsVipra
09e4af48cb move manifest.json to src 2023-05-27 20:19:19 +02:00
ItsVipra
68b7c85cc1 add trans flag to icon for contrast on all themes 2023-05-27 20:18:04 +02:00
ItsVipra
0bef6d4422 make easteregg stylename less ambigous 2023-05-27 20:15:54 +02:00
Vivien
9b95f710f2
Merge pull request #24 from ItsVipra/remove-all-crimes
Refactor the usage of the observer
2023-05-27 19:42:46 +02:00
ItsVipra
e1a6517b9f Format files using prettier 2023-05-27 17:41:54 +00:00
ItsVipra
8eb1a7b832 Add a "reset cache" button to settings 2023-05-27 19:41:27 +02:00
ItsVipra
a3fc62f599 rewrite process for finding and adding to usernames
adds compatibility with glitch-soc
closes #10 (except for notifications tab)
2023-05-27 19:37:47 +02:00
Vivien
32843618a6
Merge pull request #16 from ItsVipra/cache-fixes
Rewrite the cache functionality
2023-05-26 18:36:17 +02:00
nachtjasmin
c2cdbdb3d8
Handle undefined case for sanitizePronouns 2023-05-26 14:57:45 +02:00
nachtjasmin
b77bc04aad
commit more crimes 2023-05-26 00:27:10 +02:00
nachtjasmin
f7c09f4a7b
Simplify hasClasses 2023-05-26 00:22:36 +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
nachtjasmin
2e714b5498
Render pronoun badge as HTML
This enables external links, e.g. to pronouns.page and automatically
handles the & 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
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
c9dc31ed3f
Format all files with prettier 2023-05-25 15:37:24 +02:00
Vipra
1e5e338c08 initial commit 2023-05-24 18:47:04 +02:00