-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.js
37 lines (37 loc) · 1.22 KB
/
manifest.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
module.exports = function (isFF) {
const manifest = {
name: 'Slide Zipper',
description: 'A browser extension that allows you to download a ZIP file containing images of each slide in a Google Slides Presentation',
version: '0.1',
permissions: ['storage'],
web_accessible_resources: [],
background: isFF ? { scripts: ['background.js'] } : { service_worker: 'background.js' },
content_scripts: [
{
matches: ['https://docs.google.com/presentation/*'],
js: ['scripts/jszip.js', 'scripts/downloader.js']
}
],
icons: {
16: 'icons/pack-icon-16.png',
32: 'icons/pack-icon-32.png',
48: 'icons/pack-icon-48.png'
},
minimum_chrome_version: '80.0.3987',
manifest_version: isFF ? 2 : 3 // ,
// options_page: './options/index.html'
}
if (!isFF) {
manifest.host_permissions = ['https://docs.google.com/']
}
if (isFF) {
manifest.permissions.push('<all_urls>')
manifest.browser_specific_settings = { gecko: { id: '{90bbe48f-041c-4953-a664-2bd5f4e647e4}' } }
}
manifest[isFF ? 'browser_action' : 'action'] = {
default_title: 'Slide Zipper',
default_icon: 'icons/pack-icon-inactive-64.png',
default_popup: ''
}
return manifest
}