Theres a specific website that has certain funtions that I’d like my Chrome extension to run whenever the page is active. Lets call this website website1
Website1 has function called enabled()
that I’d like to run:
website1.enable()
Now to my understaning calling contentScript will run in its own sort of context and not website1 context. So calling website1.enable()
actually results in below error
contentScript.js:2 Uncaught ReferenceError: website1
How can I call website1.enable()
in its context?