Answer the question
In order to leave comments, you need to log in
How to prevent a site from calling an alert?
If there is no connection, the site calls alert () in which notifies about it. Everything would be fine, but as a result, the work of other scripts on the page is interrupted until you confirm by clicking OK.
As a result, content scripts embedded on pages through the Google Chrome extension also stall.
Tell me
if there are any ways:
1. Either redirect all alerts to the console
2. Or disable the call to alert () at all
3. Or automatically close alerts
availability of new purchases. We accept that I have full access to the tree of site elements through the extension.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question