I am wondering if it is possible to automatically run my extension (or a function in my extension) each time a page loads? Right now, I have it set that you would click the icon Browser Action icon to run my extension.
You've got two options:
chrome.tabs.onUpdated
event. Use the chrome.tabs.executeScript
method to inject script. See also:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.