Gecko strict compatibility versionining to prevent Chromium-only NoScript 12.x from being accidentally installed on Firefox.

This commit is contained in:
hackademix 2024-11-02 18:05:34 +01:00
parent 537f9b3f9f
commit a4e2b9b344
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
2 changed files with 12 additions and 1 deletions

10
manifest.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
SRC=src/
if [[ $1 == "2" ]]; then
mv=2
min=128
else
mv=3
min=666
fi
sed -i -re 's/("manifest_version":\s*)[0-9]/\1'$mv'/' -e 's/("strict_min_version":\s*")[0-9]+/\1'$min'/' "$SRC/manifest.json"

View File

@ -5,7 +5,8 @@
"browser_specific_settings": {
"gecko": {
"id": "{73a6fe31-595d-460b-a920-fcc0f8843232}",
"strict_min_version": "115.0"
"strict_min_version": "666.0",
"strict_max_version": "665.0"
},
"gecko_android": {}
},