-
action: default_popup
- select which file will serve as main UI
-
content_scripts
contentscript.js
- files that run in context of the webpages we’re on
- use this to manipulate the DOM of our webpage that our extension is looking at
Ctrl + Shift + I
to see console logs!!
-
service_worker
-
chrome.scripting.executeScript
- can use this in
background.js
- useful if u want to inject a script on demand (not automatically), when u want to execute code in response to specific events / based on conditions etc
- can use this in