2 ms·
> There’s a a proper mechanism for executing scripts in the document context, which should be used. Which is? Edit: In the interest of saving time, it looks b
by resoluteteeth 6y ago
> There’s a a proper mechanism for executing scripts in the document context, which should be used.
Which is?
Edit: In the interest of saving time, it looks based on your other comment that you're referring to chrome.tabs.executescript, but code executed this way executes as a content script so it doesn't run in the page context and can't communicate with javascript running on the page.
If there's another way of running code in the page without injecting html I'd love to hear about it, though.
- byecomputer 6y agoThey could always try asking me if I want to be tracked, no code injection necessary.