Open

Description
Recently uBlock added support for the new ABP syntax where:
-
Remove:
{remove: true;}
=:remove()
-
Inline CSS:
{css-declaration}
=:style(css-declaration !important;)
which can be tested in https://abptestpages.org, but take 3 seconds to do in VSCode:
ABP
! <------------------- Remove ------------------->
! https://abptestpages.org/en/filters/remove
abptestpages.org###remove-id {remove: true;}
abptestpages.org##div[id='{{remove-id}}'] {remove: true;}
abptestpages.org##.remove-class {remove: true;}
abptestpages.org##.testcase-area > .remove-descendant {remove: true;}
abptestpages.org##.testcase-examplecontent + .remove-sibling {remove: true;}
abptestpages.org##div[height="40"][width="40"] {remove: true;}
abptestpages.org##div[href="http://testcase-attribute-remove.com/"] {remove: true;}
abptestpages.org##div[style="width: 42px;"] {remove: true;}
abptestpages.org##div[href^="http://testcase-startswith-remove.com/"] {remove: true;}
abptestpages.org##div[style^="width: 43px;"] {remove: true;}
abptestpages.org##div[style$="width: 44px;"] {remove: true;}
abptestpages.org##div[style*="width: 45px;"] {remove: true;}
! https://abptestpages.org/en/filters/remove-extended
abptestpages.org#?#div:-abp-properties(width: 46px) {remove: true;}
abptestpages.org#?#div:-abp-has(>div>span.remove-abp-has) {remove: true;}
abptestpages.org#?#div:has(>div>span.remove-has) {remove: true;}
abptestpages.org#?#span:-abp-contains(remove-contains-target) {remove: true;}
abptestpages.org#?#span:xpath(//*[@id="basic-xpath-usage-with-remove-fail"]) {remove: true;}
abptestpages.org#?#span:has-text(remove-has-text) {remove: true;}
abptestpages.org#?#div:-abp-has(> div:-abp-properties(width: 47px)) {remove: true;}
abptestpages.org#?#div:-abp-properties(WiDtH: 48px) {remove: true;}
abptestpages.org#?#.remove-wildcard:-abp-properties(cursor:*) {remove: true;}
abptestpages.org#?#div:-abp-properties(/width: 13[1-5]px;/) {remove: true;}
abptestpages.org#?#div > div:-abp-contains(/remove-containsregex\d/) {remove: true;}
! https://abptestpages.org/en/filters/inline-css-on-DOM-mutation
abptestpages.org#?##span-inline-css {background-color: #0dc74b;}
! https://abptestpages.org/en/filters/remove-extended-inversion
abptestpages.org#?#.removei-properties:not(:-abp-properties(width: 137px)) {remove: true;}
abptestpages.org#?#.removei-has:not(:-abp-has(span.removei-has-not-hide)) {remove: true;}
abptestpages.org#?#.removei-contains:not(span:-abp-contains(example-content)) {remove: true;}
abptestpages.org#?#.removei-chained-parent:not(:-abp-has(> div:-abp-properties(width: 138px))) {remove: true;}
abptestpages.org#?#.removei-case:not(:-abp-properties(WiDtH: 139px)) {remove: true;}
abptestpages.org#?#.removei-wildcard:not(:-abp-properties(cursor:*)) {remove: true;}
abptestpages.org#?#.removei-regex:not(:-abp-properties(/width: 14[1-5]px;/)) {remove: true;}
abptestpages.org#?#.removei-contains-regex:not(span:-abp-contains(/example-contentregex\d/)) {remove: true;}
! <------------------- Inline CSS ------------------->
! https://abptestpages.org/en/filters/inline-css
abptestpages.org###inline-css-id {background-color: #0dc74b;}
abptestpages.org##div[id='{{inline-css-id}}'] {background-color: #0dc74b;}
abptestpages.org##.inline-css-class {background-color: #0dc74b;}
abptestpages.org##.testcase-area > .inline-css-descendant {background-color: #0dc74b;}
abptestpages.org##.testcase-examplecontent + .inline-css-sibling {background-color: #0dc74b;}
abptestpages.org##div[height="50"][width="50"] {background-color: #0dc74b;}
abptestpages.org##div[href="http://testcase-attribute-inline-css.com/"] {background-color: #0dc74b;}
abptestpages.org##div[style="width: 52px;"] {background-color: #0dc74b;}
abptestpages.org##div[href^="http://testcase-startswith-inline-css.com/"] {background-color: #0dc74b;}
abptestpages.org##div[style^="width: 53px;"] {background-color: #0dc74b;}
abptestpages.org##div[style$="width: 54px;"] {background-color: #0dc74b;}
abptestpages.org##div[style*="width: 55px;"] {background-color: #0dc74b;}
! https://abptestpages.org/en/filters/inline-css-extended
abptestpages.org#?#div:-abp-properties(width: 56px) {background-color: #0dc74b;}
abptestpages.org#?#div:-abp-has(>div>span.inline-css-abp-has) {background-color: #0dc74b;}
abptestpages.org#?#div:has(>div>span.inline-css-has) {background-color: #0dc74b;}
abptestpages.org#?#span:-abp-contains(.inline-css-contains-target) {background-color: #0dc74b;}
abptestpages.org#?#span:xpath(//*[@id="basic-xpath-usage-with-inline-css-fail"]) {background-color: #0dc74b;}
abptestpages.org#?#span:has-text(inline-css-has-text) {background-color: #0dc74b;}
abptestpages.org#?#div:-abp-has(> div:-abp-properties(width: 57px)) {background-color: #0dc74b;}
abptestpages.org#?#div:-abp-properties(WiDtH: 58px) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-wildcard:-abp-properties(cursor:*) {background-color: #0dc74b;}
abptestpages.org#?#div:-abp-properties(/width: 14[1-5]px;/) {background-color: #0dc74b;}
abptestpages.org#?#div > div:-abp-contains(/inline-css-containsregex\d/) {background-color: #0dc74b;}
! https://abptestpages.org/en/filters/inline-css-on-DOM-mutation
abptestpages.org#?##span-inline-css {background-color: #0dc74b;}
! https://abptestpages.org/en/filters/inline-css-extended-inversion
abptestpages.org#?#.inline-css-inv-properties:not(:-abp-properties(width: 147px)) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-inv-has:not(:-abp-has(span.inline-css-inv-has-not-hide)) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-inv-contains:not(span:-abp-contains(example-content)) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-inv-chained-parent:not(:-abp-has(> div:-abp-properties(width: 148px))) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-inv-case:not(:-abp-properties(WiDtH: 149px)) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-inv-wildcard:not(:-abp-properties(cursor:*)) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-inv-regex:not(:-abp-properties(/width: 15[1-5]px;/)) {background-color: #0dc74b;}
abptestpages.org#?#.inline-css-inv-contains-regex:not(span:-abp-contains(/example-contentregex\d/)) {background-color: #0dc74b;}
Brave
! <------------------- Remove ------------------->
! https://abptestpages.org/en/filters/remove
abptestpages.org###remove-id:remove()
abptestpages.org##div[id='{{remove-id}}']:remove()
abptestpages.org##.remove-class:remove()
abptestpages.org##.testcase-area > .remove-descendant:remove()
abptestpages.org##.testcase-examplecontent + .remove-sibling:remove()
abptestpages.org##div[height="40"][width="40"]:remove()
abptestpages.org##div[href="http://testcase-attribute-remove.com/"]:remove()
abptestpages.org##div[style="width: 42px;"]:remove()
abptestpages.org##div[href^="http://testcase-startswith-remove.com/"]:remove()
abptestpages.org##div[style^="width: 43px;"]:remove()
abptestpages.org##div[style$="width: 44px;"]:remove()
abptestpages.org##div[style*="width: 45px;"]:remove()
! https://abptestpages.org/en/filters/remove-extended
abptestpages.org#?#div:-abp-properties(width: 46px):remove()
abptestpages.org#?#div:-abp-has(>div>span.remove-abp-has):remove()
abptestpages.org#?#div:has(>div>span.remove-has):remove()
abptestpages.org#?#span:-abp-contains(remove-contains-target):remove()
abptestpages.org#?#span:xpath(//*[@id="basic-xpath-usage-with-remove-fail"]):remove()
abptestpages.org#?#span:has-text(remove-has-text):remove()
abptestpages.org#?#div:-abp-has(> div:-abp-properties(width: 47px)):remove()
abptestpages.org#?#div:-abp-properties(WiDtH: 48px):remove()
abptestpages.org#?#.remove-wildcard:-abp-properties(cursor:*):remove()
abptestpages.org#?#div:-abp-properties(/width: 13[1-5]px;/):remove()
abptestpages.org#?#div > div:-abp-contains(/remove-containsregex\d/):remove()
! https://abptestpages.org/en/filters/inline-css-on-DOM-mutation
abptestpages.org#?##span-inline-css {background-color: #0dc74b;}
! https://abptestpages.org/en/filters/remove-extended-inversion
abptestpages.org#?#.removei-properties:not(:-abp-properties(width: 137px)):remove()
abptestpages.org#?#.removei-has:not(:-abp-has(span.removei-has-not-hide)):remove()
abptestpages.org#?#.removei-contains:not(span:-abp-contains(example-content)):remove()
abptestpages.org#?#.removei-chained-parent:not(:-abp-has(> div:-abp-properties(width: 138px))):remove()
abptestpages.org#?#.removei-case:not(:-abp-properties(WiDtH: 139px)):remove()
abptestpages.org#?#.removei-wildcard:not(:-abp-properties(cursor:*)):remove()
abptestpages.org#?#.removei-regex:not(:-abp-properties(/width: 14[1-5]px;/)):remove()
abptestpages.org#?#.removei-contains-regex:not(span:-abp-contains(/example-contentregex\d/)):remove()
! <------------------- Inline CSS ------------------->
! https://abptestpages.org/en/filters/inline-css
abptestpages.org###inline-css-id:style(background-color: #0dc74b !important;)
abptestpages.org##div[id='{{inline-css-id}}']:style(background-color: #0dc74b !important;)
abptestpages.org##.inline-css-class:style(background-color: #0dc74b !important;)
abptestpages.org##.testcase-area > .inline-css-descendant:style(background-color: #0dc74b !important;)
abptestpages.org##.testcase-examplecontent + .inline-css-sibling:style(background-color: #0dc74b !important;)
abptestpages.org##div[height="50"][width="50"]:style(background-color: #0dc74b !important;)
abptestpages.org##div[href="http://testcase-attribute-inline-css.com/"]:style(background-color: #0dc74b !important;)
abptestpages.org##div[style="width: 52px;"]:style(background-color: #0dc74b !important;)
abptestpages.org##div[href^="http://testcase-startswith-inline-css.com/"]:style(background-color: #0dc74b !important;)
abptestpages.org##div[style^="width: 53px;"]:style(background-color: #0dc74b !important;)
abptestpages.org##div[style$="width: 54px;"]:style(background-color: #0dc74b !important;)
abptestpages.org##div[style*="width: 55px;"]:style(background-color: #0dc74b !important;)
! https://abptestpages.org/en/filters/inline-css-extended
abptestpages.org#?#div:-abp-properties(width: 56px):style(background-color: #0dc74b !important;)
abptestpages.org#?#div:-abp-has(>div>span.inline-css-abp-has):style(background-color: #0dc74b !important;)
abptestpages.org#?#div:has(>div>span.inline-css-has):style(background-color: #0dc74b !important;)
abptestpages.org#?#span:-abp-contains(.inline-css-contains-target):style(background-color: #0dc74b !important;)
abptestpages.org#?#span:xpath(//*[@id="basic-xpath-usage-with-inline-css-fail"]):style(background-color: #0dc74b !important;)
abptestpages.org#?#span:has-text(inline-css-has-text):style(background-color: #0dc74b !important;)
abptestpages.org#?#div:-abp-has(> div:-abp-properties(width: 57px)):style(background-color: #0dc74b !important;)
abptestpages.org#?#div:-abp-properties(WiDtH: 58px):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-wildcard:-abp-properties(cursor:*):style(background-color: #0dc74b !important;)
abptestpages.org#?#div:-abp-properties(/width: 14[1-5]px;/):style(background-color: #0dc74b !important;)
abptestpages.org#?#div > div:-abp-contains(/inline-css-containsregex\d/):style(background-color: #0dc74b !important;)
! https://abptestpages.org/en/filters/inline-css-on-DOM-mutation
abptestpages.org#?##span-inline-css:style(background-color: #0dc74b !important;)
! https://abptestpages.org/en/filters/inline-css-extended-inversion
abptestpages.org#?#.inline-css-inv-properties:not(:-abp-properties(width: 147px)):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-inv-has:not(:-abp-has(span.inline-css-inv-has-not-hide)):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-inv-contains:not(span:-abp-contains(example-content)):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-inv-chained-parent:not(:-abp-has(> div:-abp-properties(width: 148px))):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-inv-case:not(:-abp-properties(WiDtH: 149px)):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-inv-wildcard:not(:-abp-properties(cursor:*)):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-inv-regex:not(:-abp-properties(/width: 15[1-5]px;/)):style(background-color: #0dc74b !important;)
abptestpages.org#?#.inline-css-inv-contains-regex:not(span:-abp-contains(/example-contentregex\d/)):style(background-color: #0dc74b !important;)
Metadata
Metadata
Assignees
Labels
No labels