3 ms·
Possibly dumb question, but I'm confused by the apparent overlap: What's the difference between chrome.scripting and a content script that you pass messages to
by stickfigure 5y ago
Possibly dumb question, but I'm confused by the apparent overlap:
What's the difference between chrome.scripting and a content script that you pass messages to?
- teraflop 5y agoContent scripts can be loaded into a page either statically, when the page URL matches a regex listed in the manifest, or dynamically, by calling chrome.tabs.executeScript (in V2) or chrome.scripting.executeScript (in V3). Once the content script is loaded, AFAIK its execution behaves the same no matter how it was loaded.