-
Notifications
You must be signed in to change notification settings - Fork 35
/
ghostery-tab-base.js
83 lines (80 loc) · 2.29 KB
/
ghostery-tab-base.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
/*!
* Copyright (c) 2014-present Cliqz GmbH. All rights reserved.
*
* 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 https://mozilla.org/MPL/2.0/.
*/
const urls = require('./common/urls-ghostery');
const base = require('./common/system');
const id = 'ifnpgdmcliingpambkkihjlhikmbbjid';
module.exports = {
platform: 'webextension',
specific: 'ghostery-tab',
baseURL: '/modules/',
pack: 'web-ext build -s build -a .',
versionPrefix: '10',
settings: Object.assign({}, urls, {
id,
appName: 'Ghostery',
name: 'ghosteryTabAppNameNightly',
channel: 'GT12', // Ghostery Tab Chrome Beta
MSGCHANNEL: 'ghostery-tab',
freshTabNews: true,
freshTabStats: true,
browserAction: 'quicksearch',
OFFERS_CHANNEL: 'ghostery-tab',
ALLOWED_COUNTRY_CODES: ['de', 'at', 'ch', 'es', 'us', 'fr', 'nl', 'gb', 'it', 'se'],
DEFAULT_SEARCH_ENGINE: 'DuckDuckGo',
FRESHTAB_TITLE: 'Ghostery Tab',
offboardingURLs: {
en: 'https://www.surveymonkey.de/r/StartTabEng',
de: 'https://www.surveymonkey.de/r/StartTabDE',
},
INSIGHTS_INTERNAL: true,
}),
default_prefs: {
'modules.human-web.enabled': false,
'modules.hpnv2.enabled': true,
'freshtab.search.mode': 'search',
},
modules: [
'core',
'telemetry',
'core-cliqz',
'abtests-legacy',
'geolocation',
'search',
'dropdown',
'freshtab',
'offers-v2',
'human-web',
'insights',
'hpnv2',
'webrequest-pipeline',
'webextension-specific',
'anolysis',
'anolysis-cc',
'overlay',
'control-center',
'message-center',
'toolbox'
],
bundles: [
'hpnv2/worker.wasm.bundle.js',
'hpnv2/worker.asmjs.bundle.js',
'core/content-script.bundle.js',
'webextension-specific/app.bundle.js',
'freshtab/home.bundle.js',
'dropdown/dropdown.bundle.js',
'control-center/control-center-react.bundle.js',
'human-web/rusha.bundle.js',
'toolbox/toolbox.bundle.js',
],
builderDefault: Object.assign({}, base.builderConfig, {
externals: base.builderConfig.externals.concat('@cliqz-oss/dexie'),
globalDeps: Object.assign({}, base.builderConfig.globalDeps, {
'@cliqz-oss/dexie': 'Dexie',
}),
}),
};