Skip to content

Instantly share code, notes, and snippets.

@ewauq
Last active April 3, 2018 10:44
Show Gist options
  • Save ewauq/f39271f2634a1400ee84ea7df7502f17 to your computer and use it in GitHub Desktop.
Save ewauq/f39271f2634a1400ee84ea7df7502f17 to your computer and use it in GitHub Desktop.
chrome.webRequest.onBeforeRequest.addListener(function(details) {
if(details.url.indexOf(".monsupersite.fr/public/css/") != -1) return { cancel: true }
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