|
|
|
|
|
by dkopi
3620 days ago
|
|
Very interesting if true. I'm tempted to build an extension just to check that. I wonder if a DOM mutation event would be triggered if a content script adds a new link element and changes it's href. Would I be able to catch that and quickly change the href, before the content script continues to fecth the processed properties? |
|
It is true. See documentation => https://developer.chrome.com/extensions/content_scripts#exec... :
> Content scripts execute in a special environment called an isolated world. They have access to the DOM of the page they are injected into, but not to any JavaScript variables or functions created by the page. ... The same is true in reverse