Just a glorified version of my user script to make reddit chats usable in browser.
As a bonus, now you don't need to switch your user agent just to visit the site on mobile!
Firefox |
---|
Download |
Or on a release page
- DMs support
- Threads support
- Built-in user-agent spoofer
- Basic chat functionality support
The extension manifest is defined in src/manifest.js
and used by
@samrum/vite-plugin-web-extension
in the vite config.
Background, content scripts, options, and popup entry points exist in the
src/entries
directory.
To switch between Manifest V2 and Manifest V3 builds, use the MANIFEST_VERSION
environment variable defined in .env
HMR during development in Manifest V3 requires Chromium version >= 110.0.5480.0.
See Vite Configuration Reference.
npm install
You can customize your build via .env
file
MANIFEST_VERSION=3
FIREFOX_BUILD=0
MANIFEST_VERSION
- manifest version you want to use (2
or3
)FIREFOX_BUILD
- is the build for Firefox (0
- no,1
- yes)
Hot Module Reloading is used to load changes inline without requiring extension rebuilds and extension/page reloads Currently only works in Chromium based browsers.
npm run dev
Rebuilds extension on file changes. Requires a reload of the extension (and page reload if using content scripts)
npm run watch
Minifies and optimizes extension build
npm run build
Browser-specific builds
npm run build:chrome
# or
npm run build:firefox
The build will be at dist/
directory
Note: Chrome build will use v3
manifest and Firefox build will use v2
manifest. Also I added a random id for Firefox build to be able to install it
without any additional steps.
Loads the contents of the dist directory into the specified browser
npm run serve:chrome
npm run serve:firefox
This project uses AGPL license: License