Skip to content
Permalink
Browse files
Add resource for noop VMAP
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 0043b4c18c938bea238d7193fc7123d68df551dd
Showing with 6 additions and 1 deletion.
  1. +4 −0 assets/resources/resources.txt
  2. +1 −0 src/js/assets.js
  3. +1 −1 src/js/start.js
@@ -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() {
;
@@ -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)',
@@ -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');
}

0 comments on commit 0043b4c

Please sign in to comment.