1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

announce remove-attr.js and remove-class.js as deprecated

MasterKia 2022-12-11 00:10:22 +03:30
parent 93a5994b93
commit 035353c6ab

@ -507,8 +507,13 @@ Examples:
*** ***
### ra.js / ### ~ra.js~ /
### remove-attr.js [](https://github.com/gorhill/uBlock/blob/0f330c7359567587df6c35e9108b75c339533a56/assets/resources/scriptlets.js#L658) ### ~remove-attr.js [](https://github.com/gorhill/uBlock/blob/0f330c7359567587df6c35e9108b75c339533a56/assets/resources/scriptlets.js#L658)~
Deprecated by [`:remove-attr()`](https://github.com/uBlockOrigin/uBlock-issues/wiki/Static-filter-syntax#subjectremove-attr-subjectremove-class)
**Once the next stable release is widespread, filter authors must use the new operator instead of the `+js()` counterpart.**
Removes attribute(s) from DOM tree node(s). By default will run only once when the initial HTML document has been completely loaded and parsed but sub-resources such as scripts, images, stylesheets and frames are still loading. Removes attribute(s) from DOM tree node(s). By default will run only once when the initial HTML document has been completely loaded and parsed but sub-resources such as scripts, images, stylesheets and frames are still loading.
Parameters: Parameters:
@ -528,8 +533,12 @@ Examples:
*** ***
### rc.js / ### ~rc.js~ /
### remove-class.js [](https://github.com/gorhill/uBlock/blob/3160bc8ccdab2b7dbc906ea213b29a4c04120be1/assets/resources/scriptlets.js#L757) ### ~remove-class.js~ [](https://github.com/gorhill/uBlock/blob/3160bc8ccdab2b7dbc906ea213b29a4c04120be1/assets/resources/scriptlets.js#L757)
Deprecated by [`:remove-class()`](https://github.com/uBlockOrigin/uBlock-issues/wiki/Static-filter-syntax#subjectremove-attr-subjectremove-class)
**Once the next stable release is widespread, filter authors must use the new operator instead of the `+js()` counterpart.**
New in [1.26.0](https://github.com/gorhill/uBlock/commit/49d9929191461cc8534ebf5707d94a5970945bde). New in [1.26.0](https://github.com/gorhill/uBlock/commit/49d9929191461cc8534ebf5707d94a5970945bde).