mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 08:37:11 +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' ],
|
||||
[ 'html', 'text/html' ],
|
||||
[ 'js', 'text/javascript' ],
|
||||
[ 'json', 'application/json' ],
|
||||
[ 'mp3', 'audio/mp3' ],
|
||||
[ 'mp4', 'video/mp4' ],
|
||||
[ 'png', 'image/png' ],
|
||||
|
@ -162,6 +162,10 @@ export default new Map([
|
||||
alias: [ 'noopjs', 'abp-resource:blank-js' ],
|
||||
data: 'text',
|
||||
} ],
|
||||
[ 'noop.json', {
|
||||
alias: [ 'noopjson' ],
|
||||
data: 'text',
|
||||
} ],
|
||||
[ 'noop.txt', {
|
||||
alias: 'nooptext',
|
||||
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