From 59a9a43a83202111ef2a786e1d4c3638185f99ec Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 24 Aug 2024 12:11:35 -0400 Subject: [PATCH] Add noop resources for redirect purpose Related discussion: https://github.com/uBlockOrigin/uAssets/issues/25014#issuecomment-2307982886 --- src/js/redirect-resources.js | 18 ++++++++++++++---- src/web_accessible_resources/noop-vast2.xml | 1 + src/web_accessible_resources/noop-vast3.xml | 1 + src/web_accessible_resources/noop-vast4.xml | 1 + .../{noop-vmap1.0.xml => noop-vmap1.xml} | 0 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/web_accessible_resources/noop-vast2.xml create mode 100644 src/web_accessible_resources/noop-vast3.xml create mode 100644 src/web_accessible_resources/noop-vast4.xml rename src/web_accessible_resources/{noop-vmap1.0.xml => noop-vmap1.xml} (100%) diff --git a/src/js/redirect-resources.js b/src/js/redirect-resources.js index b8577e370..b1a24c61f 100644 --- a/src/js/redirect-resources.js +++ b/src/js/redirect-resources.js @@ -19,8 +19,6 @@ Home: https://github.com/gorhill/uBlock */ -'use strict'; - /******************************************************************************/ // The resources referenced below are found in ./web_accessible_resources/ @@ -159,8 +157,20 @@ export default new Map([ alias: 'nooptext', data: 'text', } ], - [ 'noop-vmap1.0.xml', { - alias: 'noopvmap-1.0', + [ 'noop-vast2.xml', { + alias: 'noopvast-2.0', + data: 'text', + } ], + [ 'noop-vast3.xml', { + alias: 'noopvast-3.0', + data: 'text', + } ], + [ 'noop-vast4.xml', { + alias: 'noopvast-4.0', + data: 'text', + } ], + [ 'noop-vmap1.xml', { + alias: [ 'noop-vmap1.0.xml', 'noopvmap-1.0' ], data: 'text', } ], [ 'outbrain-widget.js', { diff --git a/src/web_accessible_resources/noop-vast2.xml b/src/web_accessible_resources/noop-vast2.xml new file mode 100644 index 000000000..9bbe8d3ca --- /dev/null +++ b/src/web_accessible_resources/noop-vast2.xml @@ -0,0 +1 @@ + diff --git a/src/web_accessible_resources/noop-vast3.xml b/src/web_accessible_resources/noop-vast3.xml new file mode 100644 index 000000000..cc1185f28 --- /dev/null +++ b/src/web_accessible_resources/noop-vast3.xml @@ -0,0 +1 @@ + diff --git a/src/web_accessible_resources/noop-vast4.xml b/src/web_accessible_resources/noop-vast4.xml new file mode 100644 index 000000000..bd408f56b --- /dev/null +++ b/src/web_accessible_resources/noop-vast4.xml @@ -0,0 +1 @@ + diff --git a/src/web_accessible_resources/noop-vmap1.0.xml b/src/web_accessible_resources/noop-vmap1.xml similarity index 100% rename from src/web_accessible_resources/noop-vmap1.0.xml rename to src/web_accessible_resources/noop-vmap1.xml