Skip to content

Improve @@ rules to not disable cosmetics #70

Open

Description

@ameshkov

Exception rules in Safari rely on the rule type ignore-previous-rules so to make it work we have to order the rules in a specific order. Exception rules without modifiers are placed at the end of the list and therefore they disable not just URL blocking, but cosmetic rules as well.

We could solve this by limiting resource-type list for those rules.

However, this will increase the list size and complexity so before doing that we should weigh pros and cons. How much bigger the final list will be?

Activity

  1. ameshkov commented on Jul 17, 2025

    @ameshkov
    MemberAuthor

    We'll probably be able to do that in Safari 19 when ignore-following-rules becomes available: #87

    In this case we'll be able to sort rules like this:

    1. cosmetics
    2. $elemhide rules converted to `ignore-previous-rules`
    3. regular exception rules converted to `ignore-following-rules`
    4. blocking rules
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions