packs into xpi

This commit is contained in:
Er2 2022-03-20 12:13:20 +03:00
parent 6cb48d7702
commit a08297e291
4 changed files with 26 additions and 2 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
diskort.xpi

5
makeext.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
zip diskort.xpi btfl.css ext.png manifest.json
echo "goto about:config and set xpinstall.signatures.required to false"
echo "then goto about:addons -> settings icon below search -> install add-on from file"

View file

@ -11,9 +11,18 @@
"content_scripts": [
{
"matches": ["https://discord.com/*"],
"matches": [
"*://discord.com/*",
"*://discord.gg/*",
"*://discord.gift/*"
],
"css": ["btfl.css"]
}
]
],
"browser_specific_settings": {
"gecko": {
"id": "diskort@er2"
}
}
}

View file

@ -7,6 +7,15 @@ Currently it's in alpha.
Instruction for Firefox (may be working on Chrome with some changes).
Release mode:
1. Run ./makeext.sh (if on Linux or macOS).
Or just pack all files as zip into diskort.xpi
2. Go to ~about:config~ and set ~xpinstall.signatures.required~ to ~false~
3. Install extension (via ~about:addons~, drag&drop to browser, etc.).
Debug mode:
1. Clone or unpack downloaded zip archive (easily finds).
2. Go to ~about:debugging#/runtime/this-firefox~
3. Click on *Load Temponary Add-on...*