48 lines
1.4 KiB
JavaScript
Raw Normal View History

2019-03-15 10:08:39 +08:00
module.exports = {
2019-03-15 15:06:15 +08:00
name: 'CC-Inspector',
version: '1.0.0',
2019-03-15 15:06:15 +08:00
description: 'cocos creator inspector',
author: 'xu_yanfeng',
manifest_version: 2,
icons: {'16': 'icons/16.png', '128': 'icons/128.png'},
2019-03-15 19:10:02 +08:00
// 权限申请
permissions: [
'<all_urls>',
'*://*/*',
'activeTab',
2019-03-15 19:10:02 +08:00
'tabs',// 标签
'cookies',
'background',
2019-03-15 19:10:02 +08:00
'contextMenus',// 右键菜单
'unlimitedStorage',
2019-03-15 19:10:02 +08:00
'storage',// 本地存储
'notifications',// 通知
'identity',
2019-03-15 19:10:02 +08:00
'identity.email',
"http://*/*",
"https://*/*",
"*://*/*",
"system.cpu",
"nativeMessaging"
],
browser_action: {
default_title: 'title',
default_popup: 'pages/popup.html'
},
background: {
persistent: false,
page: 'pages/background.html'
},
devtools_page: 'pages/devtools.html',
options_page: 'pages/options.html',
2019-03-15 19:10:02 +08:00
// 需要直接注入页面的js
content_scripts: [{
js: ['js/inject.js'],
2019-03-15 19:10:02 +08:00
run_at: 'document_end',// 代码注入时间: "document_start", "document_end", or "document_idle"
matches: ['<all_urls>'],// 匹配所有地址
all_frames: true
}],
2019-03-15 19:10:02 +08:00
content_security_policy: "script-src 'self' 'unsafe-eval'; object-src 'self' allow-modals ",
web_accessible_resources: ['panel.html', 'js/content.js']
2019-03-15 10:08:39 +08:00
}