diff options
author | Andrew Cady <d@jerkface.net> | 2020-06-19 21:35:34 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-06-19 21:35:34 -0400 |
commit | ccd49562a72588670769df8c95eef1d32acad8e4 (patch) | |
tree | 7fc96e82efcf1249536aaeb04e8e7c25bf489e43 /firefox-sideloader | |
parent | 2b33334cdd32305bb86ffbeddccc02be1366f9bb (diff) |
it sets the homepage even in the thin mode! but the privacy tab still opens...
Diffstat (limited to 'firefox-sideloader')
-rw-r--r-- | firefox-sideloader/functions.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firefox-sideloader/functions.sh b/firefox-sideloader/functions.sh index ace764a..b1208ee 100644 --- a/firefox-sideloader/functions.sh +++ b/firefox-sideloader/functions.sh | |||
@@ -86,6 +86,14 @@ clone_profile_raw() | |||
86 | 86 | ||
87 | copy_file_with_filter "$new_profile_dir" "$old_profile_dir" 'extensions.json' | 87 | copy_file_with_filter "$new_profile_dir" "$old_profile_dir" 'extensions.json' |
88 | copy_file_with_filter "$new_profile_dir" "$old_profile_dir" 'addonStartup.json.lz4' | 88 | copy_file_with_filter "$new_profile_dir" "$old_profile_dir" 'addonStartup.json.lz4' |
89 | |||
90 | if [ "$COPY_ALL_PREFS" ] | ||
91 | then | ||
92 | copy_file_with_filter "$new_profile_dir" "$old_profile_dir" 'prefs.js' | ||
93 | else | ||
94 | egrep '^user_pref."(browser.startup.homepage"|app.normandy\.|browser.newtab\.|extensions\.|doh-rollout\.)' "$old_profile_dir"/prefs.js > "$new_profile_dir"/prefs.js | ||
95 | printf '%s\n' 'user_pref("browser.startup.homepage_override.mstone", "ignore");' >> "$new_profile_dir"/prefs.js | ||
96 | fi | ||
89 | } | 97 | } |
90 | 98 | ||
91 | clone_profile() | 99 | clone_profile() |