Answer the question
In order to leave comments, you need to log in
How to intercept click events on a website with a chrome extension?
The extension should intercept the click event in any area of the site with the example.com domain. How to write such a function?
Answer the question
In order to leave comments, you need to log in
This is done via content scripts . In short, you need to request permission to insert a content script (via the extension manifest) and inject the script into the page. In the content script, you write a click event handler in the standard way. This section shows how to embed a script on a site with a specific domain .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question