summaryrefslogtreecommitdiff
path: root/config.js
diff options
context:
space:
mode:
authorgirst <girst@users.noreply.github.com>2019-06-24 07:36:36 +0200
committergirst <girst@users.noreply.github.com>2019-06-24 08:05:23 +0200
commitb6d0fd2cda60196a8228d6fc3b9b330bb1871393 (patch)
tree5a709413f504a962a41f427a16e17fdf5c26efbb /config.js
downloadlegacywolf-b6d0fd2cda60196a8228d6fc3b9b330bb1871393.tar.gz
legacywolf-b6d0fd2cda60196a8228d6fc3b9b330bb1871393.zip
initial commit
Diffstat (limited to 'config.js')
-rw-r--r--config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/config.js b/config.js
new file mode 100644
index 0000000..35e6bbf
--- /dev/null
+++ b/config.js
@@ -0,0 +1,13 @@
+// keep this comment
+try {
+ // monkey-patching to disable signing and force-enable legacy extensions:
+ let Xdb = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {});
+ Xdb.XPIDatabase['SIGNED_TYPES'].clear();
+ Xdb.AddonSettings = {
+ "REQUIRE_SIGNING": false,
+ "LANGPACKS_REQUIRE_SIGNING": false,
+ "ALLOW_LEGACY_EXTENSIONS": true,
+ };
+
+ Cu.import('chrome://legacy/content/boot.jsm'); // engage the bootstrap loader
+} catch(ex) {}