mirror of https://github.com/paulgb/BarbBlock
generate extension from master list
parent
49015240ee
commit
8f2149e3a5
@ -1,2 +1,2 @@
|
||||
{% for blockset in blacklist %}{% for domain in blockset.domains %}{{ domain }}
|
||||
{% endfor %}{% endfor %}
|
||||
{% for domain in domains %}{{ domain }}
|
||||
{% endfor %}
|
||||
|
@ -0,0 +1,10 @@
|
||||
|
||||
var urls = [
|
||||
{% for domain in domains %} '*://{{ domain }}/*'{% if not loop.last %},{% endif %}
|
||||
{% endfor %}];
|
||||
|
||||
chrome.webRequest.onBeforeRequest.addListener(
|
||||
(details) => ({cancel: true}),
|
||||
{urls: urls},
|
||||
["blocking"]
|
||||
);
|
@ -0,0 +1,22 @@
|
||||
{
|
||||
"manifest_version": 2,
|
||||
"name": "{{ name }}",
|
||||
"description": "{{ description }}",
|
||||
"version": "{{ version }}",
|
||||
"icons": {
|
||||
"16": "icon/icon16.png",
|
||||
"32": "icon/icon32.png",
|
||||
"48": "icon/icon48.png",
|
||||
"128": "icon/icon128.png"
|
||||
},
|
||||
"background": {
|
||||
"scripts": [
|
||||
"barbblock.js"
|
||||
]
|
||||
},
|
||||
"permissions": [
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue