I am trying to learn to use the chrome.tabs.executeScript commend. I\'ve created a simple extension with a browser action. My background.html file currently looks like this:
It's not recommended to use http://*/*
and https://*/*
. From the Google documentation:
To inject a programmatic content script, provide the activeTab permission in the manifest. This grants secure access to the active site's host and temporary access to the tabs permission, enabling the content script to run on the current active tab without specifying cross-origin permissions.
Instead, (as suggested in the page) just use activeTab
permission.