Chrome Extension Load A Background.js Each Time The Page Reloads
Can I reload the background.js each time a page reloads with my chrome extension? I want to use it to inject a CSS file each time.
Solution 1:
background.html
- The background page, is only loaded once for each chrome session.
(I assumed that your background.js
file runs from a background page, because of the file name)
- If you want to execute Javascript for each page, you have to use content scripts.
- If you want to inject static CSS in every page, have a look at this Stack Overflow question:
Post a Comment for "Chrome Extension Load A Background.js Each Time The Page Reloads"