mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Add support to redirect to noop.json
There ar ea couple of AdGuard filters supporting this local resource. Reference: https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-redirects.md#noopjson
This commit is contained in:
parent
c1d8f5908d
commit
bd8a91ed3a
@ -38,6 +38,7 @@ const extToMimeMap = new Map([
|
|||||||
[ 'gif', 'image/gif' ],
|
[ 'gif', 'image/gif' ],
|
||||||
[ 'html', 'text/html' ],
|
[ 'html', 'text/html' ],
|
||||||
[ 'js', 'text/javascript' ],
|
[ 'js', 'text/javascript' ],
|
||||||
|
[ 'json', 'application/json' ],
|
||||||
[ 'mp3', 'audio/mp3' ],
|
[ 'mp3', 'audio/mp3' ],
|
||||||
[ 'mp4', 'video/mp4' ],
|
[ 'mp4', 'video/mp4' ],
|
||||||
[ 'png', 'image/png' ],
|
[ 'png', 'image/png' ],
|
||||||
|
@ -162,6 +162,10 @@ export default new Map([
|
|||||||
alias: [ 'noopjs', 'abp-resource:blank-js' ],
|
alias: [ 'noopjs', 'abp-resource:blank-js' ],
|
||||||
data: 'text',
|
data: 'text',
|
||||||
} ],
|
} ],
|
||||||
|
[ 'noop.json', {
|
||||||
|
alias: [ 'noopjson' ],
|
||||||
|
data: 'text',
|
||||||
|
} ],
|
||||||
[ 'noop.txt', {
|
[ 'noop.txt', {
|
||||||
alias: 'nooptext',
|
alias: 'nooptext',
|
||||||
data: 'text',
|
data: 'text',
|
||||||
|
1
src/web_accessible_resources/noop.json
Normal file
1
src/web_accessible_resources/noop.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
Loading…
Reference in New Issue
Block a user