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

Implement support for :style cosmetic filters #86

Merged
merged 1 commit into from
Jan 10, 2019

Conversation

remusao
Copy link
Collaborator

@remusao remusao commented Jan 10, 2019

Filters of the form domains##selector:style(custom style) can be used to apply a custom style to elements of the DOM (instead of hiding). This is needed to defuse some anti-adblocking mechanisms.

Changelog:

  • Implement support for :style cosmetic filters #86
    • [BREAKING] getCosmeticsFilters will now return CSS as a single string
      (stylesheet) instead of a list of selectors. This simplifies the usage and
      allows to directly inject this into the page using the method of your
      choice: through content scripts or tabs.injectCSS API.

@remusao remusao merged commit 679c800 into ghostery:master Jan 10, 2019
@remusao remusao mentioned this pull request Jan 28, 2019
@remusao remusao deleted the cosmetic-style-filters branch September 5, 2019 11:37
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.

None yet

2 participants