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

Add $protobuf option for Basic rules #573

Closed
ameshkov opened this Issue May 23, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@ameshkov
Member

ameshkov commented May 23, 2016

Why do we need this?
Hardcoding rules for YT app ad blocking is not very good. We need a declarative way to do this.

Rule syntax
$protobuf rules should work like [$replace] #239 rules.

Example:
||example.org^$protobuf=123|1234|12345

This rule removes protobuf tags 123, 1234 and 12345 for all responses got from example.org. Just like $replace rules, applying $protobuf option turns every other filtering method off (so no more HTML filtering and such).

@ameshkov ameshkov added this to the 2.6 milestone May 23, 2016

@ameshkov ameshkov self-assigned this May 23, 2016

@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

ameshkov May 23, 2016

Member

Rules for YT app:

||googleapis.com/youtubei/v1/player$protobuf=48841103
||googleapis.com/youtubei/v1/browse?$protobuf=62887855|49413586|51621377
||googleapis.com/youtubei/v1/next?$protobuf=62960614|65002523
Member

ameshkov commented May 23, 2016

Rules for YT app:

||googleapis.com/youtubei/v1/player$protobuf=48841103
||googleapis.com/youtubei/v1/browse?$protobuf=62887855|49413586|51621377
||googleapis.com/youtubei/v1/next?$protobuf=62960614|65002523
@ameshkov

This comment has been minimized.

Show comment
Hide comment
@ameshkov

ameshkov May 23, 2016

Member

It works:)

Member

ameshkov commented May 23, 2016

It works:)

@ameshkov ameshkov closed this May 23, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment