I am writing a chrome extension that needs to run every time certain webpages are loaded.
Currently when I first load a page the script runs. However if I then go to another page and click "Back" so it returns to the original page, the script does not run. If I then refresh the page it does run the script.
I suspect this is something to do with chrome not running extensions if it is loading a cached version of the page? (Might be total rubbish).
Currently the manifest file says to "run_at" "document_end".
Anyone have any clue how I can make it run the script even when I open the page by navigating "Back"?