From 3a25fdb89ee94a1d44e102d7a5ea821b11c22f7d Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Mon, 1 Sep 2014 21:41:07 +0200 Subject: Firefox first-run config: fix unintentional zoom.full flips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- scripts/firstrun/10-firefox/main | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/firstrun/10-firefox/main b/scripts/firstrun/10-firefox/main index 3f95169..de348df 100644 --- a/scripts/firstrun/10-firefox/main +++ b/scripts/firstrun/10-firefox/main @@ -155,3 +155,15 @@ sleep 2 \ # HTML5 for youtube #${FIREFOX} http://userscripts.org/scripts/source/105433.user.js ${FIREFOX} https://youtube.com/html5 + + +# get rid of accidental browser.zoom.full toggle-downs (tested just a bit) +su -c "cat >\"$(rpm -E '%{_libdir}')/firefox/browser/defaults/preferences/user-prefs.js\" <<-EOF + pref(\"general.config.obscure_value\", 0); + pref(\"general.config.filename\", \"../../../../../../../../../../../../proc/self/cwd/.mozilla/firefox/user-prefs.cfg\"); +EOF" -- root + +cat >~/.mozilla/firefox/user-prefs.cfg <<-EOF + // + lockPref("browser.zoom.full", true); +EOF -- cgit