Hi.
I block the request of certain URLs and I want to respond with a custom HTML page. What’s the recommended way to do so?
browser.webRequest.onBeforeRequest.addListener(
function(details){
// return HTML as well
return { cancel: true};
},
{ urls: ["http://www.example.com/"] },
["blocking"]
);