-
Notifications
You must be signed in to change notification settings - Fork 1
/
query.js
47 lines (41 loc) · 851 Bytes
/
query.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
/* search queries for retrieving user settings from chrome storage */
export const oldReddit = false;
export const popupUi = {
newab: true,
newtabInBg: true,
results: {
orderBy: 'score',
desc: true
}
};
export const searchParams = {
exactMatch: true,
ignoreQs: true,
ytHandling: true
};
export const popupDefaults = {
popup: popupUi,
search: searchParams,
oldReddit: oldReddit
};
export const autorun = {
updated: true,
activated: true,
retryExact: true,
retryError: true,
badgeContent: 'num_posts'
};
export const bgOptions = {
autorun: autorun,
search: searchParams,
blacklist: []
};
export const DEFAULT_CACHE_PERIOD_MINS = 30;
export const allOptions = {
oldReddit: oldReddit,
autorun: autorun,
blacklist: bgOptions.blacklist,
cache: { period: DEFAULT_CACHE_PERIOD_MINS },
popup: popupUi,
search: searchParams
};