Skip to content

Commit

Permalink
Add resource for noop VMAP
Browse files Browse the repository at this point in the history
Related issue:
- uBlockOrigin/uBlock-issues#1425

The resource content is a copy/paste of AdGuard's code:
- https://github.com/AdguardTeam/Scriptlets/blob/bc5eec198903856413e3e114a1d636c34146173d/src/redirects/static-redirects.yml#L134

Related commit:
- gorhill/uBlock@1669d12

Co-authored-by: Raymond Hill <rhill@raymondhill.net>
  • Loading branch information
JustOff and gorhill committed Jan 25, 2021
1 parent 3647928 commit 0043b4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions assets/resources/resources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ nooptext text/plain
noopcss text/css


noopvmap-1.0 text/xml
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0"></vmap:VMAP>


noopjs application/javascript
(function() {
;
Expand Down
1 change: 1 addition & 0 deletions src/js/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ api.fetchFilterList.legacy = {
'=silent-noeval': '=silent-noeval.js',
'=noop.js': '=noopjs',
'=noop.txt': '=nooptext',
'=noop-vmap1.0.xml': '=noopvmap-1.0',
'=popads.js': '=popads.net.js',
'(popads.js)': '(popads.net.js)',
'(popads)': '(popads.net.js)',
Expand Down
2 changes: 1 addition & 1 deletion src/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var onVersionReady = function(lastVersion) {
µb.assets.purge('ublock-resources');

// Force updating all filters due to filter syntax converter update.
if ( vAPI.app.compareVersions(lastVersion, "1.16.4.26") <= 0 ) {
if ( vAPI.app.compareVersions(lastVersion, "1.16.4.27") <= 0 ) {
µb.assets.purge(/./, 'public_suffix_list.dat');
}

Expand Down

0 comments on commit 0043b4c

Please sign in to comment.