Chrome Extension: How Do I Get A Web Page To Access Functions Defined By My Content Script?
I'm programming a Chrome Extension, and I'm having it inject a content script which iterates through a few elements and attaches an onclick property to them which sends a message t
Solution 1:
There are many ways to exhange information between the specific tab you're viewing and your background script. You can check those out on this answer.
The solution to your Chrome extension ID problem is using chrome.runtime.id
to get the extension ID and inject it alongside your other code into the required page and then using it to send a message back.
Post a Comment for "Chrome Extension: How Do I Get A Web Page To Access Functions Defined By My Content Script?"