I am making a chrome extension that checks for the existence of a node in a page. I am using an event handler(DOMNodeInserted, it is deprecated but works for my purpose), but it doesn't seem to work when the user does not have chrome open(they have it minimised). How should I approach this? Trying to periodically reload the page and check also doesn't work(b/c the user is required to be present for the page to load completely, hence why I used an event handler in the first place).
Asked
Active
Viewed 19 times
0
-
Find out how the page detects it's visible (e.g. document.hasFocus, document.visibilityState) and spoof this method in [page context](/a/9517879). – wOxxOm Dec 17 '21 at 09:15
-
@wOxxOm will do that thanks – Mappy Dec 17 '21 at 10:01