mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-07 16:35:15 +08:00
高级搜索添加右键菜单子项,及后台常驻js
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
"background": {
|
"background": {
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"assets/js/background.js"
|
"assets/js/background.js"
|
||||||
|
"pages/advanced-search/js/background.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
@@ -15,7 +16,8 @@
|
|||||||
"<all_urls>"
|
"<all_urls>"
|
||||||
],
|
],
|
||||||
"js": [
|
"js": [
|
||||||
"assets/js/content.js"
|
"assets/js/content.js",
|
||||||
|
"pages/advanced-search/js/content.js"
|
||||||
],
|
],
|
||||||
"css": []
|
"css": []
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,9 @@
|
|||||||
|
chrome.contextMenus.create({
|
||||||
|
id: 'bitdance-advanced-search',
|
||||||
|
title: '高级搜索',
|
||||||
|
parentId: 'bitdance',
|
||||||
|
onclick: function (info) {
|
||||||
|
alert('当前菜单信息:'+ JSON.stringify(info))
|
||||||
|
alert("[BitDance extension] 学生助手插件 - 高级搜索 已点击菜单")
|
||||||
|
}
|
||||||
|
})
|
@@ -0,0 +1 @@
|
|||||||
|
console.log("[BitDance extension] 学生助手插件 - 高级搜索功能模块加载成功")
|
Reference in New Issue
Block a user