diff --git a/CHANGELOG.md b/CHANGELOG.md index c8cc558bf..93afb9255 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## [Unreleased] + +### Added + +- UBO alias `noop.json` for `noopjson` redirect + ## [v1.9.96] - 2023-11-15 ### Added @@ -292,6 +298,7 @@ prevent inline `onerror` and match `link` tag [#276](https://github.com/AdguardT - `metrika-yandex-tag` [#254](https://github.com/AdguardTeam/Scriptlets/issues/254) - `googlesyndication-adsbygoogle` [#252](https://github.com/AdguardTeam/Scriptlets/issues/252) +[Unreleased]: https://github.com/AdguardTeam/Scriptlets/compare/v1.9.96...HEAD [v1.9.96]: https://github.com/AdguardTeam/Scriptlets/compare/v1.9.91...v1.9.96 [v1.9.91]: https://github.com/AdguardTeam/Scriptlets/compare/v1.9.83...v1.9.91 [v1.9.83]: https://github.com/AdguardTeam/Scriptlets/compare/v1.9.72...v1.9.83 diff --git a/scripts/compatibility-table.json b/scripts/compatibility-table.json index fe97e1b63..e1ffb70d1 100644 --- a/scripts/compatibility-table.json +++ b/scripts/compatibility-table.json @@ -413,7 +413,8 @@ "abp": "blank-js" }, { - "adg": "noopjson" + "adg": "noopjson", + "ubo": "noop.json" }, { "adg": "nooptext", diff --git a/src/helpers/compatibility-redirects.ts b/src/helpers/compatibility-redirects.ts index a8617aa43..30f5991d5 100644 --- a/src/helpers/compatibility-redirects.ts +++ b/src/helpers/compatibility-redirects.ts @@ -120,6 +120,7 @@ const redirects: RedirectCompatibilityMap[] = [ }, { adg: 'noopjson', + ubo: 'noop.json', }, { adg: 'nooptext', diff --git a/src/redirects/static-redirects.yml b/src/redirects/static-redirects.yml index eeb41b20f..c73c8a804 100644 --- a/src/redirects/static-redirects.yml +++ b/src/redirects/static-redirects.yml @@ -127,6 +127,8 @@ ```adblock ||example.org/geo/location$xmlhttprequest,redirect=noopjson ``` + aliases: + - noop.json file: noopjson.json contentType: application/json content: '{}' diff --git a/tests/api/index.spec.js b/tests/api/index.spec.js index a9183be46..a8617da51 100644 --- a/tests/api/index.spec.js +++ b/tests/api/index.spec.js @@ -738,6 +738,10 @@ describe('Test redirects api methods', () => { actual: 'nobab.js', expected: 'prevent-bab', }, + { + actual: 'noop.json', + expected: 'noopjson', + }, // Valid uBO redirect name that aren't supported by ADG { actual: 'outbrain-widget.js', diff --git a/wiki/compatibility-table.md b/wiki/compatibility-table.md index 4d6acc1c1..0aeb4916d 100644 --- a/wiki/compatibility-table.md +++ b/wiki/compatibility-table.md @@ -129,7 +129,7 @@ | [noopcss](../wiki/about-redirects.md#noopcss) | noop.css | blank-css | | [noopframe](../wiki/about-redirects.md#noopframe) | noop.html | blank-html | | [noopjs](../wiki/about-redirects.md#noopjs) | noop.js | blank-js | -| [noopjson](../wiki/about-redirects.md#noopjson) | | | +| [noopjson](../wiki/about-redirects.md#noopjson) | noop.json | | | [nooptext](../wiki/about-redirects.md#nooptext) | noop.txt | blank-text | | [noopmp3-0.1s](../wiki/about-redirects.md#noopmp3-0.1s) | noop-0.1s.mp3 | blank-mp3 | | [noopmp4-1s](../wiki/about-redirects.md#noopmp4-1s) | noop-1s.mp4 | blank-mp4 |