Add support to redirect to noop.json · gorhill/uBlock@bd8a91e (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit bd8a91e

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions

Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ const extToMimeMap = new Map([
38 38 [ 'gif', 'image/gif' ],
39 39 [ 'html', 'text/html' ],
40 40 [ 'js', 'text/javascript' ],
41 +[ 'json', 'application/json' ],
41 42 [ 'mp3', 'audio/mp3' ],
42 43 [ 'mp4', 'video/mp4' ],
43 44 [ 'png', 'image/png' ],

Lines changed: 4 additions & 0 deletions

Original file line number Diff line number Diff line change
@@ -162,6 +162,10 @@ export default new Map([
162 162 alias: [ 'noopjs', 'abp-resource:blank-js' ],
163 163 data: 'text',
164 164 } ],
165 +[ 'noop.json', {
166 +alias: [ 'noopjson' ],
167 +data: 'text',
168 +} ],
165 169 [ 'noop.txt', {
166 170 alias: 'nooptext',
167 171 data: 'text',

Lines changed: 1 addition & 0 deletions

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 +{}

0 commit comments