diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9ffe8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +diskort.xpi diff --git a/makeext.sh b/makeext.sh new file mode 100755 index 0000000..bf16c5c --- /dev/null +++ b/makeext.sh @@ -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" diff --git a/manifest.json b/manifest.json index ab5054d..fcb03f5 100644 --- a/manifest.json +++ b/manifest.json @@ -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" + } + } } diff --git a/readme.org b/readme.org index 307e629..86ffaee 100644 --- a/readme.org +++ b/readme.org @@ -7,6 +7,16 @@ 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...*