Skip to content

Cosmetic rules can be used as CSS rules #1293

@AdamWr

Description

@AdamWr

I mean that at the moment we can also use ## instead of #$# and CSS rule will be applied.

Steps to reproduce:

  1. Add this rule:
    example.org##body { background: red!important; }
  2. Go to - http://example.org/

It also allows to use url(...) and if I understand correctly it shouldn't be allowed - #1026, #659 (comment)

Example:

example.org##body { background: lightblue url("https://www.w3schools.com/cssref/img_tree.gif") no-repeat fixed center!important; }
Screenshot

image

AdGuard for Windows 7.4 nightly 17 (build 3185, CL 1.5.241)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions