Disable red border for blocked large media elements · uBlockOrigin/uBlock-issues · Discussion #3407 (original) (raw)

Due CSS specificity:

You should try this:

*##:root img:not(#style_important):style(border: 1px solid lightgrey !important;) ! Rest of blocked huge media (optional): *##:root picture:not(#style_important):style(border: 1px solid lightgrey !important;) *##:root audio:not(#style_important):style(border: 1px solid lightgrey !important;) *##:root video:not(#style_important):style(border: 1px solid lightgrey !important;)

If too many photos will be bordered (e.g. smaller than limit or from cache loaded) then maybe needed use:

due looks out of control in uiStyles now.

You must be logged in to vote

3 replies

@garry-ut99

This comment was marked as disruptive content.

@krystian3w

Corrected regexes are not work for me (I can only check with chromium in future), Seemingly I can see them in the logger and DOM inspector but that's not the point.

I guess:

@garry-ut99

This comment was marked as disruptive content.

Answer selected by vvkdev