2019-03-15 19:10:02 +08:00

48 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
name: 'CC-Inspector',
version: '1.0.0',
description: 'cocos creator inspector',
author: 'xu_yanfeng',
manifest_version: 2,
icons: {'16': 'icons/16.png', '128': 'icons/128.png'},
// 权限申请
permissions: [
'<all_urls>',
'*://*/*',
'activeTab',
'tabs',// 标签
'cookies',
'background',
'contextMenus',// 右键菜单
'unlimitedStorage',
'storage',// 本地存储
'notifications',// 通知
'identity',
'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',
// 需要直接注入页面的js
content_scripts: [{
js: ['js/inject.js'],
run_at: 'document_end',// 代码注入时间: "document_start", "document_end", or "document_idle"
matches: ['<all_urls>'],// 匹配所有地址
all_frames: true
}],
content_security_policy: "script-src 'self' 'unsafe-eval'; object-src 'self' allow-modals ",
web_accessible_resources: ['panel.html', 'js/content.js']
}