Add basic keyboard navigation to teddit.net
Based on RES
teddit is an open source frontend for reddit (like invidio and nitter)
See also: teddit-image-previews
- Go up/down posts, parent comments, and child comments
- Toggle image preview
- Toggle comment collapse
- Open comment in new background tab
- Adjust size of image preview
- Download from https://addons.mozilla.org/addon/tedditnav/
- Or download the xpi file from releases
- Go to
about:addons -> tedditnav -> Preferences
and enter your key bindings then save it - Go to
teddit.net
and enjoy
- Git clone
- Install the dependencies (typescript, webpack, and webextension-polyfill-ts) with
npm ci
- Build with
npx webpack --mode=production
for release ornpx webpack --mode=development
for eval-source-map debugging
Note that eval-source-map doesn't work for background.ts because CSP blocks eval calls. The exclude option for EvalSourceMapDevToolPlugin doesn't work either. Either copy in the production version or use another devtool option. The debugger isn't really needed for background.ts, but it prevents the preferences page from reading stored settings
npm test
- Bump version in
manifest.json
npm run clean
npm run build
npm run release
- Upload build/tedditnav.zip to mozilla and provide the source code with build/source.zip
- Download the xpi file and upload to Github releases
- Go to https://addons.mozilla.org/en-US/developers/addon/tedditnav/versions/
- Select the latest version and download the xpi file
- No tracking, does not send anything to anywhere
- Free and open source - reading the source code is highly recommended. It's only ~300 lines, and if I can write typescript without knowing it, then you can understand it without knowing it.
- Only permission requested is storage, to store user key bindings