|
10 | 10 |
|
11 | 11 | https://github.com/antfu/vitesse-webext |
12 | 12 |
|
13 | | -before release: |
14 | | - |
15 | | -- [ ] require few permissions on install (perms to manage thread.pfg.pw) |
16 | | -- [ ] options page |
17 | | - |
18 | 13 | features I want: |
19 | 14 |
|
20 | 15 | - [x] auto redirect to thread.pfg.pw |
21 | 16 | - [ ] click the icon to search for reddit comments on a youtube video |
| 17 | + - done, needs threadclient impl |
22 | 18 | - [ ] do that for lots of pages, not just youtube |
23 | | -- [ ] proxy getting reddit chat message count and pass to threadclient (fixes an issue) |
24 | | - - this should be enabled by default (no going into settings and accepting an extra permission) |
25 | | - - gql |
26 | | - - url: `https://gql.reddit.com/?request_timestamp=${Date.now()}` |
27 | | - - body: `{id "d99f8962bcd6"}` |
28 | | - - authorization: `Bearer ${…}` |
29 | | - - i'm not sure where that token is from. the first bit is in the `reddit_session` cookie but where's the |
30 | | - part after the dash from? idk |
31 | | - - response: |
32 | | - ```js |
33 | | - {data: {badgeIndicators: { |
34 | | - chatUnreadMessages: {count: number}, |
35 | | - chatUnreadMentions: {count: number}, |
36 | | - chatHasNewMessages: {isShowing: boolean}, |
37 | | - chatUnacceptedInvites: {count: number}, |
38 | | - }}} |
39 | | - ``` |
40 | | - - ok I couldn't figure out how to get the authorization token, so new plan: |
41 | | - - have the user navigate to `reddit.com` or `old.reddit.com` and intercept requests to |
42 | | - `gql.reddit.com` to get the token |
43 | | - - save the token |
44 | | - - if requests start erroring, ask the user to do that again. |
45 | 19 | - [ ] proxy uploading images to reddit's s3 bucket if it's even possible. I think it is but haven't tested. |
46 | | - |
47 | | -ok I think I have to do this to get it in my browser: |
48 | | - |
49 | | -https://stackoverflow.com/questions/44537589/how-do-i-install-webextension-that-developed-by-myself-to-firefox-nightly |
50 | | - |
0 commit comments