mirror of https://github.com/paulgb/BarbBlock
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
236 B
Cheetah
11 lines
236 B
Cheetah
7 years ago
|
|
||
|
var urls = [
|
||
|
{% for domain in domains %} '*://{{ domain }}/*'{% if not loop.last %},{% endif %}
|
||
|
{% endfor %}];
|
||
|
|
||
|
chrome.webRequest.onBeforeRequest.addListener(
|
||
|
(details) => ({cancel: true}),
|
||
|
{urls: urls},
|
||
|
["blocking"]
|
||
|
);
|