This repository was archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 970
/
Copy pathsettings.js
111 lines (109 loc) · 5.43 KB
/
settings.js
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
const settings = {
// General tab
STARTUP_MODE: 'general.startup-mode',
HOMEPAGE: 'general.homepage',
NEWTAB_MODE: 'general.newtab-mode',
SHOW_HOME_BUTTON: 'general.show-home-button',
DEFAULT_DOWNLOAD_SAVE_PATH: 'general.downloads.default-save-path',
AUTO_HIDE_MENU: 'general.autohide-menu',
DISABLE_TITLE_MODE: 'general.disable-title-mode',
WIDE_URL_BAR: 'general.wide-url-bar',
BOOKMARKS_TOOLBAR_MODE: 'general.bookmarks-toolbar-mode',
SHOW_BOOKMARKS_TOOLBAR: 'bookmarks.toolbar.show',
LANGUAGE: 'general.language',
CHECK_DEFAULT_ON_STARTUP: 'general.check-default-on-startup',
IS_DEFAULT_BROWSER: 'general.is-default-browser',
DOWNLOAD_DEFAULT_PATH: 'general.download-default-path',
DOWNLOAD_ALWAYS_ASK: 'general.download-always-ask',
// Search tab
DEFAULT_SEARCH_ENGINE: 'search.default-search-engine',
OFFER_SEARCH_SUGGESTIONS: 'search.offer-search-suggestions',
// Tabs tab
SWITCH_TO_NEW_TABS: 'tabs.switch-to-new-tabs',
TAB_CLOSE_ACTION: 'tabs.close-action',
PAINT_TABS: 'tabs.paint-tabs',
TABS_PER_PAGE: 'tabs.tabs-per-page',
SHOW_TAB_PREVIEWS: 'tabs.show-tab-previews',
SHOW_DASHBOARD_IMAGES: 'tabs.show-dashboard-images',
// Privacy Tab
HISTORY_SUGGESTIONS: 'privacy.history-suggestions',
BOOKMARK_SUGGESTIONS: 'privacy.bookmark-suggestions',
TOPSITE_SUGGESTIONS: 'privacy.topsite-suggestions',
OPENED_TAB_SUGGESTIONS: 'privacy.opened-tab-suggestions',
AUTOCOMPLETE_HISTORY_SIZE: 'privacy.autocomplete.history-size',
DO_NOT_TRACK: 'privacy.do-not-track',
BLOCK_CANVAS_FINGERPRINTING: 'privacy.block-canvas-fingerprinting',
// Security Tab
ACTIVE_PASSWORD_MANAGER: 'security.passwords.active-password-manager',
SHUTDOWN_CLEAR_HISTORY: 'shutdown.clear-history',
SHUTDOWN_CLEAR_DOWNLOADS: 'shutdown.clear-downloads',
SHUTDOWN_CLEAR_CACHE: 'shutdown.clear-cache',
SHUTDOWN_CLEAR_ALL_SITE_COOKIES: 'shutdown.clear-all-site-cookies',
SHUTDOWN_CLEAR_AUTOCOMPLETE_DATA: 'shutdown.clear-autocomplete-data',
SHUTDOWN_CLEAR_AUTOFILL_DATA: 'shutdown.clear-autofill-data',
SHUTDOWN_CLEAR_SITE_SETTINGS: 'shutdown.clear-site-settings',
FLASH_INSTALLED: 'security.flash.installed',
FULLSCREEN_CONTENT: 'security.fullscreen.content',
AUTOPLAY_MEDIA: 'security.autoplay.media',
// Autofill
AUTOFILL_ENABLED: 'privacy.autofill-enabled',
// Payments Tab
PAYMENTS_ALLOW_NON_VERIFIED: 'payments.allow-non-verified-publishers',
PAYMENTS_CONTRIBUTION_AMOUNT: 'payments.contribution-amount',
PAYMENTS_ENABLED: 'payments.enabled',
PAYMENTS_MINIMUM_VISIT_TIME: 'payments.minimum-visit-time',
PAYMENTS_MINIMUM_VISITS: 'payments.minimum-visits',
PAYMENTS_NOTIFICATION_ADD_FUNDS_TIMESTAMP: 'notification-add-funds-timestamp',
PAYMENTS_NOTIFICATION_RECONCILE_SOON_TIMESTAMP: 'notification-reconcile-soon-timestamp',
PAYMENTS_NOTIFICATION_TRY_PAYMENTS_DISMISSED: 'payments.notification-try-payments-dismissed',
PAYMENTS_NOTIFICATIONS: 'payments.notifications',
PAYMENTS_SITES_AUTO_SUGGEST: 'payments.sites-auto-suggest',
PAYMENTS_SITES_HIDE_EXCLUDED: 'payments.sites-hide-excluded',
PAYMENTS_SITES_SHOW_LESS: 'payments.sites-show-less',
// Shields Tab
BLOCKED_COUNT_BADGE: 'shields.blocked-count-badge',
COMPACT_BRAVERY_PANEL: 'shields.compact-bravery-panel',
// Advanced settings
HARDWARE_ACCELERATION_ENABLED: 'advanced.hardware-acceleration-enabled',
PDFJS_ENABLED: 'advanced.pdfjs-enabled',
TORRENT_VIEWER_ENABLED: 'advanced.torrent-viewer-enabled',
DEFAULT_ZOOM_LEVEL: 'advanced.default-zoom-level',
SMOOTH_SCROLL_ENABLED: 'advanced.smooth-scroll-enabled',
SEND_CRASH_REPORTS: 'advanced.send-crash-reports',
SEND_USAGE_STATISTICS: 'advanced.send-usage-statistics',
UPDATE_TO_PREVIEW_RELEASES: 'advanced.update-to-preview-releases',
ADBLOCK_CUSTOM_RULES: 'adblock.customRules',
TOOLBAR_UI_SCALE: 'advanced.toolbar-ui-scale',
SWIPE_NAV_DISTANCE: 'advanced.swipe-nav-distance',
// Sync settings
SYNC_ENABLED: 'sync.enabled',
SYNC_DEVICE_NAME: 'sync.device-name',
SYNC_TYPE_BOOKMARK: 'sync.type.bookmark',
SYNC_TYPE_HISTORY: 'sync.type.history',
SYNC_TYPE_SITE_SETTING: 'sync.type.siteSetting',
SYNC_NETWORK_DISABLED: 'sync.network.disabled', // disable network connection to sync server. only used in testing.
// DEPRECATED settings
// ########################
// these constants should not appear outside of this file, ../settings.js, and our tests
// NOTE: these settings rely on default values being set in ./appConfig.js
// ########################
// > phased out with 0.11.4
PASSWORD_MANAGER_ENABLED: 'security.passwords.manager-enabled',
ONE_PASSWORD_ENABLED: 'security.passwords.one-password-enabled',
DASHLANE_ENABLED: 'security.passwords.dashlane-enabled',
LAST_PASS_ENABLED: 'security.passwords.last-pass-enabled',
ENPASS_ENABLED: 'security.passwords.enpass-enabled',
BITWARDEN_ENABLED: 'security.passwords.bitwarden-enabled',
// > phased out with 0.12.6
SHOW_BOOKMARKS_TOOLBAR_FAVICON: 'bookmarks.toolbar.showFavicon',
SHOW_BOOKMARKS_TOOLBAR_ONLY_FAVICON: 'bookmarks.toolbar.showOnlyFavicon',
POCKET_ENABLED: 'extensions.pocket.enabled',
VIMIUM_ENABLED: 'extensions.vimium.enabled',
HONEY_ENABLED: 'extensions.honey.enabled',
PINTEREST_ENABLED: 'extensions.pinterest.enabled',
METAMASK_ENABLED: 'extensions.metamask.enabled'
}
module.exports = settings