vite-plugin-specter 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ // Firefox MV2 background script
2
+ browser.browserAction.onClicked.addListener((tab) => {
3
+ browser.tabs.executeScript(tab.id, { file: 'content.js' });
4
+ });
@@ -0,0 +1,8 @@
1
+ // Chrome MV3 service worker
2
+ // Toolbar click injects Specter on any page (not just localhost)
3
+ chrome.action.onClicked.addListener((tab) => {
4
+ chrome.scripting.executeScript({
5
+ target: { tabId: tab.id },
6
+ files: ['content.js'],
7
+ });
8
+ });