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: 10.8.1) and npm (version: 20.5.1)
- pnpm (version: 9.1.1):
npm install -g pnpm
- web-ext (version: 7.8.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./Vencord
relative to your current directory.) cd $ROOT
(i.e.cd ./Vencord
)pnpm i && pnpm run buildWeb
cd $ROOT/dist
- Change the ID to
vencord-firefox@sth
in$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 --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.xpi
is the addon. - In Firefox, open
about:addons
and 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.11.7
.
Any chance of this getting recompiled? Having dependency hell on my machine trying to build the extension.