Obviously, Vencord has stopped uploading their extension to addons.mozilla.org due to the long-waiting review, and they also decided not to go self-hosting. But I need to use that, therefore I decided to try build the addon.
Some packages are required to be installed in advance:
- NodeJS (version: 20.5.1) and npm (version: 10.8.1)
- pnpm (version: 10.7.0):
npm install -g pnpm - web-ext (version: 8.5.0):
npm i -g web-ext
(Version numbers above are for reference only. Usually, you don't need to follow them.)
Here's what I've done:
- Clone the repo with
git clone https://github.com/Vendicated/Vencord --depth 1(for clarity, let's call the directory of your clone$ROOT, which should be./Vencordrelative to your current directory.) cd $ROOT(i.e.cd ./Vencord)pnpm i && pnpm run buildWebcd $ROOT/dist- Change the ID to
vencord-firefox@sthin$ROOT/dist/firefox-unpacked/manifest.json. (Sorry for my terrible and thoughtless naming flavour 😓.) If you ever need to do it yourself, make sure your ID is unique (i.e. different from my ID, and different from any existing extension signed by mozilla). - Sign the addon with
web-ext sign -s $ROOT/dist/firefox-unpacked --channel=unlisted --api-key=... --api-secret=.... The fields left empty can be acquired from here (you need to have a Mozilla account). - In
$ROOT/dist/web-ext-artifacts, the file with the postfix.xpiis the addon. - In Firefox, open
about:addonsand drag-and-drop the file to install.
You can download the vencord-sth.xpi file and simply do the 8th step above. The current version is 1.13.4.

@K4sum1 It'll be great if you can fix the issue! The issue has been there since the Firefox version was still officially supported. I didn't know how to fix that, and I didn't have time to figure it out, either. As a workaround, I just keep using Stylus when I need to add some styles.
More about Stylus
Stylus is a dedicated extension for managing and automatically injecting UserStyles. It searches styles on UserStyles.world and uso.kkx.one, where there are a lot of styles for Discord available. If you need to install a style from https://betterdiscord.app/themes, it looks like we can create a new style in Stylus, and just copy the CSS Rules from the downloaded file.BTW I created a style to minimize the sidebar on Discord, which can be re-expanded by hovering the cursor. I gonna just put the link here in case anyone is interested.