Skip to content

Instantly share code, notes, and snippets.

@ewauq
Last active April 3, 2018 10:44
Show Gist options
  • Save ewauq/c109fea4dee2fd25d6761c4a3b6e5dff to your computer and use it in GitHub Desktop.
Save ewauq/c109fea4dee2fd25d6761c4a3b6e5dff to your computer and use it in GitHub Desktop.
chrome.webRequest.onBeforeRequest.addListener(function(details) {
return { cancel: details.url.indexOf(".monsupersite.fr") == -1 }
},
{
urls: [
"http://*/*",
"https://*/*"
]
}, ["blocking"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment