Uassets: Hardcoded "ads" texts

Created on 11 Aug 2019  路  10Comments  路  Source: uBlockOrigin/uAssets

https://www.file-up.org/yzamat3xs0i7

www.file-up.org##.page-wrap.text-center[style="margin-bottom: 20px;"]::first-line:style(color: #0000 !important;)
www.file-up.org##.page-wrap.text-center[style="margin-bottom: 20px;"] > div:not([id]):not([class]):nth-of-type(2)::first-line:style(color: #0000 !important;)
www.file-up.org##.page-wrap.text-center[style="margin-bottom: 20px;"] > div:not([id]):not([class]) > .row > div > .blocktxt::first-line:style(color: #0000 !important;)


Note:

https://caniuse.com/css-rrggbbaa
https://caniuse.com/#feat=css-rrggbbaa

All 10 comments

When you report in uAssets please add all the details to identify what you want to block / hide

A screenshot could help

obraz |
--- |

fix with CSS3 ::first-line and black transparent color coded in #rrgbbaa


after use CSS:

www.file-up.org##.page-wrap.text-center[style="margin-bottom: 20px;"]::first-line:style(color: #0000 !important;)
www.file-up.org##.page-wrap.text-center[style="margin-bottom: 20px;"] > div:not([id]):not([class]):nth-of-type(2)::first-line:style(color: #0000 !important;)
www.file-up.org##.page-wrap.text-center[style="margin-bottom: 20px;"] > div:not([id]):not([class]) > .row > div > .blocktxt::first-line:style(color: #0000 !important;)

obraz |
--- |

Also maybe better with :xpath if uBO full support override texts: https://developer.ibm.com/answers/questions/323189/xpath-to-change-the-value-of-text-node/

I think, this "arrow" -> feature is proprietary extension of this https://developer.ibm.com/urbancode/docs/using-update-xml-xpath-step/

So wait for implemantation in AdGuard Extension.

@mapx- this actually was my idea to hide these words by ::first-line styling. There does not seem to be another way to select only ads word.

Krystian asked here: https://github.com/MajkiIT/polish-ads-filter/issues/14379#issuecomment-520224841 (AdGuard issues inside)

I have no idea how AdGuard want to fix this "by xpath" without hiding content deeper in DOM tree.

font-size: 0 should "disable" select lines.

I cannot see the filters above in the logger (FF)

Because AG use scriplets (no compatible with uBO) and no body Added these CSS to hide first line.

Or bug in logger with ::first-line pseudoselector: https://developer.mozilla.org/en-US/docs/Web/CSS/::first-line

@gorhill ::first-line filters not visible in the logger

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wis picture wis  路  4Comments

KiLL4FuNK picture KiLL4FuNK  路  4Comments

melnation-com picture melnation-com  路  4Comments

Jose1971AB picture Jose1971AB  路  3Comments

pepablock picture pepablock  路  4Comments