Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcus-crane/comments-to-readwise
A basic extension for sending comments to Readwise as "tweets"
https://github.com/marcus-crane/comments-to-readwise
chrome-extension extension readwise
Last synced: 2 months ago
JSON representation
A basic extension for sending comments to Readwise as "tweets"
- Host: GitHub
- URL: https://github.com/marcus-crane/comments-to-readwise
- Owner: marcus-crane
- License: mit
- Created: 2022-01-23T03:55:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T07:55:33.000Z (about 2 years ago)
- Last Synced: 2024-08-03T22:14:52.844Z (5 months ago)
- Topics: chrome-extension, extension, readwise
- Language: TypeScript
- Homepage: https://chrome.google.com/webstore/detail/mbpckcijlikkkakedodgpgkdmgbdogmp
- Size: 391 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-readwise - comments-to-readwise - A basic extension for sending comments to Readwise as "tweets". (Tools / Other)
README
# Comments to Readwise
> [Install from the Chrome Web Store](https://chrome.google.com/webstore/detail/mbpckcijlikkkakedodgpgkdmgbdogmp)
> [Install from the Firefox Addon Store](https://addons.mozilla.org/en-US/firefox/addon/comments-to-readwise/)
![](./docs/example.png)
A basic Manifest v3 extension for sending Hacker News and Reddit (old.reddit.com only) comments to Readwise as "tweets"
Ideally I'll support a bunch more sources in future.
Readwise will hopefully just a "comments" category down the line instead of abusing "tweets" but it works for now.
## Setup
Once installed, you need to navigate to the extension settings and configure your Readwise token.
This gets persisted to your Chrome storage so your token should sync across browser instances.
![](./docs/settings.png)
Once your token is saved, you should see the "Save to Readwise" button appear over Hacker News comments
## Development
This plugin uses Vite to build the plugin from Typescript files.
There are only a couple of steps to build a development bundle:
```bash
$ pnpm install # yarn or npm if you prefer, i use pnpm
$ pnpm run dev
```Once done, you should have a `dist` folder that you can load into Chrome / Chromium browsers as an "Unpacked extension"
## Current issues
At present, the extension only runs on the initial comment page for a submission.
It won't work if you go to the direct link for a comment, such that the original story and author isn't visible on the page.
## Reminder for myself re: Firefox
The existing hacky XPI is created by bundling the extension, replacing with attributes from `manifest-firefox.json` (see `NOTE_FOR_FIREFOX_REVIEWERS.md`) and then signed with [web-ext sign](https://github.com/mozilla/web-ext)