-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground.js
34 lines (26 loc) · 833 Bytes
/
background.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
"use strict";
let Browser=typeof browser=='undefined' ? chrome : browser;
Browser.runtime.onInstalled.addListener (details => {
if (details.reason=='install'){
Browser.storage.sync.set ({
remove_readers_link: true,
remove_mentions_link: true,
remove_grants_link: true,
remove_premium_link: true,
remove_premium_menu_item: true,
remove_search_alerts_menu_item: true,
remove_grants_updates: true,
remove_mentions_updates: true,
remove_readers_updates: true,
remove_profile_visitors_analytics: true,
remove_cv_analytics: true,
disable_bulk_download_question: true,
remove_bulk_download_links: true,
remove_full_pdf_package_links: true,
disable_key_takeaways: true,
remove_key_takeaways_links: true,
remove_rating_modals: true,
remove_discussion_modals: true
});
}
});