Skip to content

Commit

Permalink
Merge branch 'master' into fix/AG-26638
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWr committed Oct 12, 2023
2 parents 0b96c73 + 392d472 commit 16ef24a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adguard/scriptlets",
"version": "1.9.80",
"version": "1.9.81",
"description": "AdGuard's JavaScript library of Scriptlets and Redirect resources",
"scripts": {
"build": "babel-node -x .js,.ts scripts/build.js",
Expand Down
16 changes: 11 additions & 5 deletions scripts/compatibility-table.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
},
{
"adg": "adjust-setInterval",
"ubo": "nano-setInterval-booster.js (nano-sib.js)"
"ubo": "adjust-setInterval.js (nano-setInterval-booster.js, nano-sib.js)"
},
{
"adg": "adjust-setTimeout",
"ubo": "nano-setTimeout-booster.js (nano-stb.js)"
"ubo": "adjust-setTimeout.js (nano-setTimeout-booster.js, nano-stb.js)"
},
{
"adg": "close-window",
"ubo": "window-close-if.js"
"ubo": "close-window.js (window-close-if.js)"
},
{
"adg": "debug-current-inline-script"
Expand Down Expand Up @@ -116,7 +116,7 @@
},
{
"adg": "prevent-refresh",
"ubo": "refresh-defuser.js"
"ubo": "prevent-refresh.js (refresh-defuser.js)"
},
{
"adg": "prevent-requestAnimationFrame",
Expand Down Expand Up @@ -292,6 +292,12 @@
},
{
"ubo": "trusted-replace-xhr-response.js"
},
{
"ubo": "multiup.js"
},
{
"ubo": "prevent-canvas.js"
}
],
"redirects": [
Expand Down Expand Up @@ -500,4 +506,4 @@
"ubo": "noop-0.5s.mp3"
}
]
}
}
3 changes: 3 additions & 0 deletions src/scriptlets/adjust-setInterval.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,11 @@ adjustSetInterval.names = [
'ubo-nano-setInterval-booster.js',
'nano-sib.js',
'ubo-nano-sib.js',
'adjust-setInterval.js',
'ubo-adjust-setInterval.js',
'ubo-nano-setInterval-booster',
'ubo-nano-sib',
'ubo-adjust-setInterval',
];

adjustSetInterval.injections = [
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/adjust-setTimeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,13 @@ export function adjustSetTimeout(source, matchCallback, matchDelay, boost) {
adjustSetTimeout.names = [
'adjust-setTimeout',
// aliases are needed for matching the related scriptlet converted into our syntax
'adjust-setTimeout.js',
'ubo-adjust-setTimeout.js',
'nano-setTimeout-booster.js',
'ubo-nano-setTimeout-booster.js',
'nano-stb.js',
'ubo-nano-stb.js',
'ubo-adjust-setTimeout',
'ubo-nano-setTimeout-booster',
'ubo-nano-stb',
];
Expand Down
4 changes: 4 additions & 0 deletions src/scriptlets/close-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ export function forceWindowClose(source, path = '') {

forceWindowClose.names = [
'close-window',
// aliases are needed for matching the related scriptlet converted into our syntax
'window-close-if.js',
'ubo-window-close-if.js',
'ubo-window-close-if',
'close-window.js',
'ubo-close-window.js',
'ubo-close-window',
];

forceWindowClose.injections = [
Expand Down
3 changes: 3 additions & 0 deletions src/scriptlets/prevent-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ preventRefresh.names = [
// Aliases are needed for matching the related scriptlet converted into our syntax
// These are used by UBO rules syntax
// https://github.com/gorhill/uBlock/wiki/Resources-Library#general-purpose-scriptlets
'prevent-refresh.js',
'refresh-defuser.js',
'refresh-defuser',
// Prefix 'ubo-' is required to run converted rules
'ubo-prevent-refresh.js',
'ubo-prevent-refresh',
'ubo-refresh-defuser.js',
'ubo-refresh-defuser',
];
Expand Down
10 changes: 6 additions & 4 deletions wiki/compatibility-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
| [abort-on-property-read](../wiki/about-scriptlets.md#abort-on-property-read) | abort-on-property-read.js (aopr.js) | abort-on-property-read |
| [abort-on-property-write](../wiki/about-scriptlets.md#abort-on-property-write) | abort-on-property-write.js (aopw.js) | abort-on-property-write |
| [abort-on-stack-trace](../wiki/about-scriptlets.md#abort-on-stack-trace) | abort-on-stack-trace.js (aost.js) | |
| [adjust-setInterval](../wiki/about-scriptlets.md#adjust-setInterval) | nano-setInterval-booster.js (nano-sib.js) | |
| [adjust-setTimeout](../wiki/about-scriptlets.md#adjust-setTimeout) | nano-setTimeout-booster.js (nano-stb.js) | |
| [close-window](../wiki/about-scriptlets.md#close-window) | window-close-if.js | |
| [adjust-setInterval](../wiki/about-scriptlets.md#adjust-setInterval) | adjust-setInterval.js (nano-setInterval-booster.js, nano-sib.js) | |
| [adjust-setTimeout](../wiki/about-scriptlets.md#adjust-setTimeout) | adjust-setTimeout.js (nano-setTimeout-booster.js, nano-stb.js) | |
| [close-window](../wiki/about-scriptlets.md#close-window) | close-window.js (window-close-if.js) | |
| [debug-current-inline-script](../wiki/about-scriptlets.md#debug-current-inline-script) | | |
| [debug-on-property-read](../wiki/about-scriptlets.md#debug-on-property-read) | | |
| [debug-on-property-write](../wiki/about-scriptlets.md#debug-on-property-write) | | |
Expand All @@ -38,7 +38,7 @@
| [prevent-fetch](../wiki/about-scriptlets.md#prevent-fetch) | no-fetch-if.js (prevent-fetch.js) | |
| [prevent-xhr](../wiki/about-scriptlets.md#prevent-xhr) | no-xhr-if.js (prevent-xhr.js) | |
| [prevent-popads-net](../wiki/about-scriptlets.md#prevent-popads-net) | | |
| [prevent-refresh](../wiki/about-scriptlets.md#prevent-refresh) | refresh-defuser.js | |
| [prevent-refresh](../wiki/about-scriptlets.md#prevent-refresh) | prevent-refresh.js (refresh-defuser.js) | |
| [prevent-requestAnimationFrame](../wiki/about-scriptlets.md#prevent-requestAnimationFrame) | no-requestAnimationFrame-if.js (norafif.js, prevent-requestAnimationFrame.js) | |
| [prevent-setInterval](../wiki/about-scriptlets.md#prevent-setInterval) | no-setInterval-if.js (nosiif.js, prevent-setInterval.js, setInterval-defuser.js) | |
| [prevent-setTimeout](../wiki/about-scriptlets.md#prevent-setTimeout) | no-setTimeout-if.js (nostif.js, prevent-setTimeout.js, setTimeout-defuser.js) | |
Expand Down Expand Up @@ -92,6 +92,8 @@
| | json-prune-fetch-response.js | |
| | json-prune-xhr-response.js | |
| | trusted-replace-xhr-response.js | |
| | multiup.js | |
| | prevent-canvas.js | |


## <a id="redirects"></a> Redirects compatibility table
Expand Down

0 comments on commit 16ef24a

Please sign in to comment.