-
Notifications
You must be signed in to change notification settings - Fork 35
/
ghostery.js
78 lines (76 loc) · 2.29 KB
/
ghostery.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
/*!
* 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 publish = require('./common/publish');
module.exports = {
platform: 'webextension',
brocfile: 'Brocfile.ghostery.js',
baseURL: '/cliqz/',
pack: 'npm pack',
publish: publish.toEdge('browser-core', 'ghostery'),
sourceMaps: false,
format: 'common',
settings: Object.assign({}, urls, {
channel: 'CH80',
MSGCHANNEL: 'web-extension',
URL_CHANGED_EVENT_DEBOUNCE: 500,
ATTRACK_TELEMETRY_PROVIDER: 'hpnv2',
HW_CHANNEL: 'ghostery',
ALLOWED_COUNTRY_CODES: ['de', 'at', 'ch', 'es', 'us', 'fr', 'nl', 'gb', 'it', 'be', 'se', 'dk', 'fi', 'cz', 'gr', 'hu', 'ro', 'no', 'ca', 'au', 'ru', 'ua', 'in', 'pl', 'jp', 'br', 'mx', 'cn', 'ar'],
antitrackingPlaceholder: 'ghostery',
antitrackingHeader: 'Ghostery-AntiTracking',
telemetry: {
demographics: {
brand: 'ghostery',
name: 'extension',
},
},
HUMAN_WEB_LITE_COLLECTOR_VIA_PROXY: 'https://collector-hpn.ghostery.net',
HUMAN_WEB_LITE_COLLECTOR_DIRECT: 'https://collector-hpn.ghostery.net',
}),
default_prefs: {
'modules.human-web.enabled': true,
'modules.antitracking.enabled': true,
'modules.anti-phishing.enabled': false,
'modules.adblocker.enabled': true,
'modules.insights.enabled': false,
'cliqz-adb': 1,
attrackBloomFilter: true,
humanWeb: true,
'cliqz-anti-phishing': true,
'cliqz-anti-phishing-enabled': true,
attrackTelemetryMode: 1,
attrackDefaultAction: 'placeholder',
sendAntiTrackingHeader: false,
telemetry: false,
attrackCookieTrustReferers: true,
'attrack.cookieMode': 'ghostery',
},
bundles: [
'core/content-script.bundle.js',
'hpnv2/worker.wasm.bundle.js',
'hpnv2/worker.asmjs.bundle.js',
'human-web/rusha.bundle.js',
],
modules: [
'core',
'human-web',
'hpnv2',
'antitracking',
'webrequest-pipeline',
'adblocker',
'anolysis',
'anti-phishing',
'insights',
'hpn-lite',
'human-web-lite',
],
buildTargets: {
firefox: 52,
},
};