summaryrefslogtreecommitdiff
path: root/config.js
diff options
context:
space:
mode:
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) {}