-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for section about rules priorities #258
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Helen <[email protected]>
Co-authored-by: Helen <[email protected]>
Co-authored-by: Helen <[email protected]>
Co-authored-by: Nikita Gorskikh <[email protected]>
|
||
**Example 7** | ||
|
||
`@@||example.org^$document` without additional modifiers is an alias for | ||
`@@||example.org^$document` is an alias for | ||
`@@||example.com^$elemhide,content,jsinject,urlblock,extension` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Теперь как раз надо разделить этот пример на два, эти правила не эквивалентны)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ngorskikh почему не эквивалентны?
вот выдержка из документации:
If this modifier is used with an exclusion rule (@@), it completely disables blocking on corresponding pages. It is equivalent to using $elemhide, $content, $urlblock, $jsinject, $extension modifiers simultaneously
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sfionov Вызываю поддержку с воздуха. В корлибсах нынче эти два правила не эквивалентны: из-за того, что в них нет модификаторов типа запроса, применяются некие типа запроса по-умолчанию (это было сделано не просто так, а по чьему-то строгому указанию, не помню, чьему):
@@||example.com^$elemhide,content,jsinject,urlblock,extension
неявно содержит два типа запроса: DOCUMENT
и SUBDOCUMENT
. @@||example.org^$document
неявно содержит только тип запроса DOCUMENT
. Следовательно, приоритеты у них вычисляются разные. Кто прав, кто виноват, нипонятно :(
Co-authored-by: Nikita Gorskikh <[email protected]>
A few corrections to fix arithmetic errors and clarify some non-standard situations