-
Notifications
You must be signed in to change notification settings - Fork 54
/
cliqz.cfg
72 lines (55 loc) · 2.55 KB
/
cliqz.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// CLIQZ-SPECIAL: please be careful whenever you edit this file (set or change values of prefs).
// Since those new set values will take precedence over prefs.js file in a user profile.
// If possible please modify mozilla-release/browser/app/profile/firefox.js instead.
//
const Cc = Components.classes;
const Ci = Components.interfaces;
const Cu = Components.utils;
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource:///modules/CustomizableUI.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/AppConstants.jsm");
Cu.import("resource://gre/modules/FileUtils.jsm");
const prefs = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch);
// Disable Sync
lockPref("browser.syncPromoViewsLeftMap", JSON.stringify({bookmarks:0, passwords:0, addons:0}));
CustomizableUI.destroyWidget("pocket-button");
CustomizableUI.destroyWidget("web-apps-button");
CustomizableUI.destroyWidget("search-container");
CustomizableUI.destroyWidget("searchbar");
CustomizableUI.destroyWidget("loop-button");
lockPref("loop.enabled", false);
lockPref("browser.pocket.enabled", false);
lockPref("browser.selfsupport.url", "");
// Disable Mozilla's tracking protection
lockPref("privacy.trackingprotection.enabled", false);
lockPref("privacy.trackingprotection.pbmode.enabled", false);
// Use tracker storage blocking by default. See: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/Storage_access_policy
// From distribution.ini (old days)
lockPref("distribution.id", AppConstants.MOZ_APP_NAME);
lockPref("distribution.about", "Cliqz");
lockPref("distribution.version", AppConstants.MOZ_APP_VERSION_DISPLAY);
pref("browser.uitour.enabled", false);
// Disable Safe Mode trigger on start
lockPref("toolkit.startup.max_resumed_crashes", -1);
// Disable Slow Startup message
lockPref("browser.slowStartup.notificationDisabled", true);
// Never show search bar near address bar
lockPref("browser.search.widget.inNavBar", false);
// Turn off thumbnails for New Tab (not used in Cliqz browser)
pref("browser.pagethumbnails.capturing_disabled", true);
// DB-2142 | Enable mozaddonmanager on AMO
pref("privacy.resistFingerprinting.block_mozAddonManager", true);
try {
prefs.getBoolPref("extensions.cliqz.listed");
} catch (e) {
// setting default
prefs.setBoolPref("extensions.cliqz.listed", false);
}
try {
// Remove userChrome.css file to show theme options
const userChromeCSS = FileUtils.getFile("ProfD", ["chrome", "userChrome.css"]);
if (userChromeCSS.exists()) {
userChromeCSS.remove(false);
}
} catch (e) {}