-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathconstants.py
111 lines (103 loc) · 2.86 KB
/
constants.py
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
PLUGIN_SECTIONS = (
"plugin-blocklist",
"plugin-blocklist-experiment",
"flash-blocklist",
"flash-exceptions",
"flash-allow",
"flash-allow-exceptions",
"flash-subdoc",
"flash-subdoc-exceptions",
"flashinfobar-exceptions"
)
ENTITYLIST_SECTIONS = (
"entity-whitelist",
"entity-whitelist-testing",
"staging-entity-whitelist",
"google-whitelist"
)
PRE_DNT_SECTIONS = (
"tracking-protection",
"tracking-protection-testing",
"tracking-protection-standard",
"tracking-protection-full",
"staging-tracking-protection-standard",
"staging-tracking-protection-full",
"fanboy-annoyance",
"fanboy-social",
"easylist",
"easyprivacy",
"adguard",
"social-tracking-protection",
"social-tracking-protection-facebook",
"social-tracking-protection-twitter",
"social-tracking-protection-linkedin",
"social-tracking-protection-youtube",
)
PRE_DNT_CONTENT_SECTIONS = (
"tracking-protection-full",
"staging-tracking-protection-full"
)
DNT_SECTIONS = (
"tracking-protection-base",
"tracking-protection-baseeff",
"tracking-protection-basew3c",
"tracking-protection-content",
"tracking-protection-contenteff",
"tracking-protection-contentw3c",
"tracking-protection-ads",
"tracking-protection-analytics",
"tracking-protection-social",
"tracking-protection-base-fingerprinting",
"tracking-protection-content-fingerprinting",
"tracking-protection-base-cryptomining",
"tracking-protection-content-cryptomining",
"tracking-protection-test-multitag",
# email trackers added in 2022
"tracking-protection-email-content",
"tracking-protection-email-base",
)
DNT_EMAIL_SECTIONS = (
"tracking-protection-email-content",
"tracking-protection-email-base",
)
DNT_CONTENT_SECTIONS = (
"tracking-protection-content",
"tracking-protection-contenteff",
"tracking-protection-contentw3c"
)
DNT_BLANK_SECTIONS = (
"tracking-protection-base",
"tracking-protection-content",
)
DNT_EFF_SECTIONS = (
"tracking-protection-baseeff",
"tracking-protection-contenteff",
)
DNT_W3C_SECTIONS = (
"tracking-protection-basew3c",
"tracking-protection-contentw3c"
)
LARGE_ENTITIES_SECTIONS = {
"google-whitelist",
}
STANDARD_ENTITY_SECTION = 'entity-whitelist'
SESSION_REPLAY_TAG = 'session-replay'
PERFORMANCE_TAG = 'performance'
ALL_TAGS = {
SESSION_REPLAY_TAG,
PERFORMANCE_TAG
}
TEST_DOMAIN_TEMPLATE = '%s.dummytracker.org'
DEFAULT_DISCONNECT_LIST_CATEGORIES = ['Advertising|Analytics|Social']
DEFAULT_DISCONNECT_LIST_TAGS = {}
LIST_TYPE_ENTITY = 'Entity'
LIST_TYPE_PLUGIN = 'Plugin'
LIST_TYPE_TRACKER = 'Tracker'
LARGE_ENTITIES = [
'Google',
]
VERS_LARGE_ENTITIES_SEPARATION_STARTED = 74
VERSION_EMAIL_CATEGORY_INTRODUCED = 97
WEBKIT_LISTS_DIR = 'webkit-lists'
WEBKIT_BLOCK_ALL = "block"
WEBKIT_BLOCK_COOKIES = "block-cookies"