-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v1.8' into feature/AG-16687
- Loading branch information
Showing
226 changed files
with
10,739 additions
and
17,976 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
module.exports = { | ||
extends: [ | ||
'airbnb-base', | ||
'plugin:jsdoc/recommended', | ||
], | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
babelOptions: { | ||
rootMode: 'upward', | ||
}, | ||
}, | ||
env: { | ||
browser: true, | ||
qunit: true, | ||
}, | ||
rules: { | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 120, | ||
ignoreUrls: true, | ||
}, | ||
], | ||
indent: ['error', 4, { SwitchCase: 1 }], | ||
'no-param-reassign': 0, | ||
'no-shadow': 0, | ||
'import/prefer-default-export': 0, | ||
'arrow-body-style': 0, | ||
'import/no-extraneous-dependencies': 0, | ||
'no-await-in-loop': 0, | ||
'no-restricted-syntax': 0, | ||
// jsdoc rules | ||
'jsdoc/check-tag-names': ['error', { definedTags: ['scriptlet', 'trustedScriptlet', 'redirect'] }], | ||
'jsdoc/require-jsdoc': 0, | ||
'jsdoc/require-param': 0, | ||
'jsdoc/valid-types': 0, | ||
'jsdoc/no-undefined-types': 0, | ||
'jsdoc/require-param-description': 0, | ||
'jsdoc/require-returns-description': 0, | ||
}, | ||
settings: { | ||
jsdoc: { | ||
preferredTypes: { | ||
object: 'Object', | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint-staged | ||
yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,91 @@ | ||
# Scriptlets and Redirect Resources Changelog | ||
|
||
## v1.8.1 | ||
|
||
### Added | ||
- new `trusted-set-constant` scriptlet [#137](https://github.com/AdguardTeam/Scriptlets/issues/137) | ||
- new `inject-css-in-shadow-dom` scriptlet [#267](https://github.com/AdguardTeam/Scriptlets/issues/267) | ||
- `throwFunc` and `noopCallbackFunc` prop values for `set-constant` scriptlet | ||
- `recreateIframeForSlot` method mock to `googletagservices-gpt` redirect [#259](https://github.com/AdguardTeam/Scriptlets/issues/259) | ||
|
||
### Changed | ||
|
||
- add decimal delay matching for `prevent-setInterval` and `prevent-setTimeout` [#247](https://github.com/AdguardTeam/Scriptlets/issues/247) | ||
- debug logging to include rule text when available | ||
- `getScriptletFunction` calls to throw error on unknown scriptlet names | ||
|
||
### Fixed | ||
|
||
- `prevent-xhr` and `trusted-replace-xhr-response` closure bug on multiple requests [#261](https://github.com/AdguardTeam/Scriptlets/issues/261) | ||
- missing `googletagmanager-gtm` in compatibility table | ||
|
||
## v1.7.20 | ||
|
||
### Added | ||
|
||
- `isBlocking()` method for Redirects class | ||
- `file` field for redirect type | ||
|
||
### Fixed | ||
|
||
- Redirects types. | ||
|
||
## v1.7.19 | ||
|
||
### Fixed | ||
|
||
- `prevent-addEventListener` and `log-addEventListener` loosing context when encountering already bound `.addEventListener` | ||
- `google-ima3` conversion | ||
|
||
## v1.7.14 | ||
|
||
### Added | ||
|
||
* `set-constant` ADG→UBO conversion for [`emptyArr` and `emptyObj`](https://github.com/uBlockOrigin/uBlock-issues/issues/2411) | ||
|
||
|
||
## v1.7.13 | ||
|
||
### Fixed | ||
|
||
* `isEmptyObject` helper not counting `prototype` as an object property | ||
|
||
## v1.7.10 | ||
|
||
### Added | ||
|
||
- new scriptlet `trusted-set-cookie-reload` | ||
|
||
### Fixed | ||
|
||
- `set-cookie-reload` infinite page reloading [#265](https://github.com/AdguardTeam/Scriptlets/issues/265) | ||
- breakage of `prevent-element-src-loading` due to `window` getting into `apply` wrapper [#264](https://github.com/AdguardTeam/Scriptlets/issues/264) | ||
- spread of args bug at `getXhrData` call for `trusted-replace-xhr-response` | ||
- request properties array not being served to `getRequestData` and `parseMatchProps` helpers | ||
|
||
## v1.7.3 | ||
|
||
### Added | ||
|
||
* [Trusted scriptlets](./README.md#trusted-scriptlets) with extended capabilities: | ||
* trusted-click-element [#23](https://github.com/AdguardTeam/Scriptlets/issues/23) | ||
* trusted-replace-xhr-response [#202](https://github.com/AdguardTeam/Scriptlets/issues/202) | ||
* trusted-replace-fetch-response | ||
* trusted-set-local-storage-item | ||
* trusted-set-cookie | ||
|
||
* Scriptlets: | ||
* xml-prune [#249](https://github.com/AdguardTeam/Scriptlets/issues/249) | ||
|
||
### Improved | ||
|
||
* Scriptlets: | ||
* prevent-element-src-loading [#228](https://github.com/AdguardTeam/Scriptlets/issues/228) | ||
* prevent-fetch [#216](https://github.com/AdguardTeam/Scriptlets/issues/216) | ||
* abort-on-stack-trace [#201](https://github.com/AdguardTeam/Scriptlets/issues/201) | ||
* abort-current-inline-script [#251](https://github.com/AdguardTeam/Scriptlets/issues/251) | ||
* set-cookie & set-cookie-reload | ||
* Redirects: | ||
* google-ima3 [#255](https://github.com/AdguardTeam/Scriptlets/issues/255) | ||
* metrika-yandex-tag [#254](https://github.com/AdguardTeam/Scriptlets/issues/254) | ||
* googlesyndication-adsbygoogle [#252](https://github.com/AdguardTeam/Scriptlets/issues/252) | ||
- [Trusted scriptlets](./README.md#trusted-scriptlets) with extended capabilities: | ||
- `trusted-click-element` [#23](https://github.com/AdguardTeam/Scriptlets/issues/23) | ||
- `trusted-replace-xhr-response` [#202](https://github.com/AdguardTeam/Scriptlets/issues/202) | ||
- `trusted-replace-fetch-response` | ||
- `trusted-set-local-storage-item` | ||
- `trusted-set-cookie` | ||
|
||
- Scriptlets: | ||
- `xml-prune` [#249](https://github.com/AdguardTeam/Scriptlets/issues/249) | ||
|
||
### Changed | ||
|
||
- Scriptlets: | ||
- `prevent-element-src-loading` [#228](https://github.com/AdguardTeam/Scriptlets/issues/228) | ||
- `prevent-fetch` [#216](https://github.com/AdguardTeam/Scriptlets/issues/216) | ||
- `abort-on-stack-trace` [#201](https://github.com/AdguardTeam/Scriptlets/issues/201) | ||
- `abort-current-inline-script` [#251](https://github.com/AdguardTeam/Scriptlets/issues/251) | ||
- `set-cookie` & `set-cookie-reload` | ||
- Redirects: | ||
- `google-ima3` [#255](https://github.com/AdguardTeam/Scriptlets/issues/255) | ||
- `metrika-yandex-tag` [#254](https://github.com/AdguardTeam/Scriptlets/issues/254) | ||
- `googlesyndication-adsbygoogle` [#252](https://github.com/AdguardTeam/Scriptlets/issues/252) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=1.7.3 | ||
version=1.7.20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.