Initial commit
This commit is contained in:
commit
4ae6b27809
4 changed files with 137 additions and 0 deletions
13
background.js
Normal file
13
background.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
browser.action.onClicked.addListener((tab) => {
|
||||
// Inject the CSS for the hover highlight
|
||||
browser.scripting.insertCSS({
|
||||
target: { tabId: tab.id },
|
||||
files: ["content.css"]
|
||||
});
|
||||
|
||||
// Inject the JavaScript for the element picker
|
||||
browser.scripting.executeScript({
|
||||
target: { tabId: tab.id },
|
||||
files: ["content.js"]
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue