45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
import { defineManifest } from '@crxjs/vite-plugin';
|
|
export default defineManifest({
|
|
manifest_version: 3,
|
|
name: 'Gomdown Helper',
|
|
description: 'Send browser downloads to gdown',
|
|
version: '0.0.1',
|
|
default_locale: 'en',
|
|
icons: {
|
|
'16': 'images/16.png',
|
|
'32': 'images/32.png',
|
|
'48': 'images/48.png',
|
|
'128': 'images/128.png',
|
|
},
|
|
background: {
|
|
service_worker: 'src/background/index.ts',
|
|
type: 'module',
|
|
},
|
|
action: {
|
|
default_popup: 'src/popup/index.html',
|
|
default_title: 'Gomdown Helper',
|
|
default_icon: {
|
|
'16': 'images/16.png',
|
|
'32': 'images/32.png',
|
|
'48': 'images/48.png',
|
|
'128': 'images/128.png',
|
|
},
|
|
},
|
|
content_scripts: [
|
|
{
|
|
matches: ['<all_urls>'],
|
|
js: ['src/content/index.ts'],
|
|
run_at: 'document_start',
|
|
all_frames: true,
|
|
},
|
|
],
|
|
permissions: ['downloads', 'downloads.shelf', 'notifications', 'storage', 'contextMenus', 'cookies', 'webRequest', 'nativeMessaging'],
|
|
host_permissions: ['<all_urls>'],
|
|
web_accessible_resources: [
|
|
{
|
|
resources: ['images/*'],
|
|
matches: ['<all_urls>'],
|
|
},
|
|
],
|
|
});
|