Skip to content Skip to sidebar Skip to footer

Content Script On Chrome Error Page

How can I run my extension content script on Google Chrome error page? For example on the 'This webpage is not available' error page? Here is my manifest.json config: { 'manifes

Solution 1:

I don't think it's possible, most probably this is an internal chrome:// page, which are excluded from page matches.

An alternative solution would be to listen to error events in webRequest/webNavigation APIs and replace the error page with your own.

Post a Comment for "Content Script On Chrome Error Page"