Skip to content

Instantly share code, notes, and snippets.

@XiaoPanPanKevinPan
Last active May 14, 2024 02:46
Show Gist options
  • Save XiaoPanPanKevinPan/3cceb1d84ea97c04fe17ad087df8def6 to your computer and use it in GitHub Desktop.
Save XiaoPanPanKevinPan/3cceb1d84ea97c04fe17ad087df8def6 to your computer and use it in GitHub Desktop.
Vencord For Firefox (Self-built, Non-official)

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:

Here's what I've done:

  1. 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.)
  2. cd $ROOT (i.e. cd ./Vencord)
  3. pnpm i && pnpm run buildWeb
  4. cd $ROOT/dist
  5. 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.
  6. 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).
  7. In $ROOT/dist/web-ext-artifacts, the .xpi file is the extension.
  8. 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.8.3.

This file has been truncated, but you can view the full file.
@coatlessali
Copy link

Any chance of this getting recompiled? Having dependency hell on my machine trying to build the extension.

@XiaoPanPanKevinPan
Copy link
Author

Any chance of this getting recompiled? Having dependency hell on my machine trying to build the extension.

Hey, I just recompiled & uploaded it! Sorry for being late - I forgot Vencord's existence, for there was no serious bug happening to me during these months XD

@wotikama
Copy link

wotikama commented May 5, 2024

how to update it, should i just repeat the whole process?

@XiaoPanPanKevinPan
Copy link
Author

XiaoPanPanKevinPan commented May 14, 2024

how to update it, should i just repeat the whole process?

If you're building it yourself, then yes - at least, that's what I do. But if you're using the built version I provided above, then you can update it simply by downloading the new vencord-sth.xpi and dragging-and-dropping the file in about:addons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment