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

Handle uBO style polyfills for blocked requests #27

Closed
pes10k opened this issue Jun 5, 2019 · 0 comments · Fixed by #29
Closed

Handle uBO style polyfills for blocked requests #27

pes10k opened this issue Jun 5, 2019 · 0 comments · Fixed by #29
Labels
enhancement New feature or request

Comments

@pes10k
Copy link
Collaborator

pes10k commented Jun 5, 2019

uBO defines polyfills, or alternate content bodies that should be returned for resources from a URL that matches a pattern. The bodies of these responses, and identifiers for them, are given here:

https://github.com/uBlockOrigin/uAssets/blob/master/filters/resources.txt

Rules then reference these polyfils with the redirect=<identifier> option on rules.

It would be good if adblock-rust both could

  1. understand the redirect option in rules
  2. parse polyfil definitions like https://github.com/uBlockOrigin/uAssets/blob/master/filters/resources.txt
  3. and return the alternate message body when appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant