1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +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:
Raymond Hill 2023-11-16 09:54:21 -05:00
parent c1d8f5908d
commit bd8a91ed3a
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
3 changed files with 6 additions and 0 deletions

View File

@ -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' ],

View File

@ -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',

View File

@ -0,0 +1 @@
{}