Skip to content
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

Support generichide rules #97

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 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.

@antonok-edm antonok-edm requested a review from AndriusA May 18, 2020
@antonok-edm antonok-edm self-assigned this May 18, 2020
@antonok-edm antonok-edm force-pushed the generichide branch from 3b25e96 to 827af35 May 18, 2020
Copy link
Collaborator

AndriusA left a comment

looks great! Only spotted an unrelated inaccurate comment

@@ -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

This comment has been minimized.

Copy link
@AndriusA

AndriusA May 22, 2020

Collaborator

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

This comment has been minimized.

Copy link
@antonok-edm

antonok-edm May 22, 2020

Author Collaborator

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

This comment has been minimized.

Copy link
@AndriusA

AndriusA May 22, 2020

Collaborator

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

This comment has been minimized.

Copy link
@antonok-edm

antonok-edm May 22, 2020

Author Collaborator

ah oops, I'll add that back then 😅

@antonok-edm antonok-edm force-pushed the generichide branch from 827af35 to fa295b5 May 22, 2020
@antonok-edm antonok-edm force-pushed the generichide branch from fa295b5 to 033b29c May 22, 2020
@antonok-edm antonok-edm merged commit e1a9fa4 into master May 22, 2020
2 checks passed
2 checks passed
Travis CI - Branch Build Passed
Details
Travis CI - Pull Request Build Passed
Details
@antonok-edm antonok-edm deleted the generichide branch May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.