Skip to content

Support generichide rules #97

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

Merged
merged 1 commit into from
May 22, 2020
Merged

Support generichide rules #97

merged 1 commit into from
May 22, 2020

Conversation

antonok-edm
Copy link
Collaborator

@antonok-edm antonok-edm commented May 18, 2020

Adds support for $generichide exception rules (as well as the corresponding uBO-style alias, $ghide). These are network rules that prevent generic cosmetic element hiding from being applied to matching URLs.

This partially addresses #1.

Copy link
Contributor

@AndriusA AndriusA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! Only spotted an unrelated inaccurate comment

src/blocker.rs Outdated
@@ -1346,14 +1389,13 @@ mod legacy_rule_parsing_tests {
// easyList = { 24478, 31144, 0, 5589 };
// not handling (and not including) filters with the following options:
// - $popup
// - $generichide
// - $subdocument
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not about this PR, but I think we actually do handle $subdocument

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like $document right below is handled too. I'll go ahead and remove both.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$document only somewhat - there is a spec for handling main document url blocking, but not implemented

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah oops, I'll add that back then 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants