diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-09-01 21:41:07 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-09-01 21:43:08 +0200 |
commit | 3a25fdb89ee94a1d44e102d7a5ea821b11c22f7d (patch) | |
tree | 6c64353fe461a0869e64f6ae96819e7e8991f431 /scripts/firstrun/10-firefox/main | |
parent | 25ba3ccbba87e2e0c2d82397da73c374555dcf3a (diff) | |
download | dotfiles-3a25fdb89ee94a1d44e102d7a5ea821b11c22f7d.tar.gz dotfiles-3a25fdb89ee94a1d44e102d7a5ea821b11c22f7d.tar.xz dotfiles-3a25fdb89ee94a1d44e102d7a5ea821b11c22f7d.zip |
Firefox first-run config: fix unintentional zoom.full flips
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts/firstrun/10-firefox/main')
-rw-r--r-- | scripts/firstrun/10-firefox/main | 12 |
1 files changed, 12 insertions, 0 deletions
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 |