first commit
This commit is contained in:
23
devtools.js
Normal file
23
devtools.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* DevTools Panel - 创建开发者工具面板
|
||||
*/
|
||||
|
||||
// 创建 DevTools 面板
|
||||
chrome.devtools.panels.create(
|
||||
"🔓 XHR 解密",
|
||||
"icon16.png", // 图标(可选,如果不想显示图标可以设为 null)
|
||||
"panel.html",
|
||||
function (panel) {
|
||||
console.log('✅ XHR 解密面板已创建');
|
||||
|
||||
// 面板创建完成后的回调
|
||||
panel.onShown.addListener(function (window) {
|
||||
console.log('面板已显示');
|
||||
});
|
||||
|
||||
panel.onHidden.addListener(function () {
|
||||
console.log('面板已隐藏');
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user