From 10d09e174e66ea4409a520ff48795d6e9758fb8b Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 9 Apr 2019 01:15:53 +0200
Subject: [PATCH] Enable pre-installed Firefox extensions by default.

---
 .../etc_files/eeepc/opt/firefox/defaults/pref/autoconfig.js   | 4 ++++
 buster/etc_files/eeepc/opt/firefox/firefox.cfg                | 3 +++
 2 files changed, 7 insertions(+)
 create mode 100644 buster/etc_files/eeepc/opt/firefox/defaults/pref/autoconfig.js
 create mode 100644 buster/etc_files/eeepc/opt/firefox/firefox.cfg

diff --git a/buster/etc_files/eeepc/opt/firefox/defaults/pref/autoconfig.js b/buster/etc_files/eeepc/opt/firefox/defaults/pref/autoconfig.js
new file mode 100644
index 0000000..cf8ea80
--- /dev/null
+++ b/buster/etc_files/eeepc/opt/firefox/defaults/pref/autoconfig.js
@@ -0,0 +1,4 @@
+// We set up AutoConfig according to <https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig>, see firefox.cfg comments on why we need it
+pref("general.config.filename", "firefox.cfg");
+pref("general.config.obscure_value", 0);
+
diff --git a/buster/etc_files/eeepc/opt/firefox/firefox.cfg b/buster/etc_files/eeepc/opt/firefox/firefox.cfg
new file mode 100644
index 0000000..8ab342e
--- /dev/null
+++ b/buster/etc_files/eeepc/opt/firefox/firefox.cfg
@@ -0,0 +1,3 @@
+// do not put any code into this first line, as it gets ignored by Firefox
+// we zero extensions.autoDisableScopes so our pre-installed extensions activate by default
+pref("extensions.autoDisableScopes", 0);
-- 
2.30.2