N
N
Nadim Zakirov2019-11-20 16:34:32
JavaScript
Nadim Zakirov, 2019-11-20 16:34:32

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

1 answer(s)
A
Andrew, 2019-11-20
@zkrvndm

Use your custom modal stylized as an alert

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question