Files
chromeEvent/devtools.js
2026-01-29 12:03:28 +08:00

24 lines
585 B
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.

/**
* 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('面板已隐藏');
});
}
);