You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2020. It is now read-only.
We'd like to conditionally exclude matching for certain filters based on options in Brave.
To do this the idea is to have a conditional tag which can be added to a filter.
The AdBlockClient instance which is in use must have the same added tag to match a tagged filter.
The idea is for example if the user checks a checkbox like "Allow Facebook login buttons" then we'd match filters with an option of tag=fb-login.
Serialization and deserialization is backwards compatible so no new version bump is needed.
It does still serialize and deserialize the tags though.
It does this in the filter's serialize'd block where it stores the domain list. If it sees a # character, it knows that it is a tag first. # is not a valid character for a domain. Existing live versions of the lib would just deserialize any such rule as as a domain and not consider it.
The text was updated successfully, but these errors were encountered:
We'd like to conditionally exclude matching for certain filters based on options in Brave.
To do this the idea is to have a conditional tag which can be added to a filter.
The AdBlockClient instance which is in use must have the same added tag to match a tagged filter.
The idea is for example if the user checks a checkbox like "Allow Facebook login buttons" then we'd match filters with an option of
tag=fb-login
.Serialization and deserialization is backwards compatible so no new version bump is needed.
It does still serialize and deserialize the tags though.
It does this in the filter's serialize'd block where it stores the domain list. If it sees a # character, it knows that it is a tag first. # is not a valid character for a domain. Existing live versions of the lib would just deserialize any such rule as as a domain and not consider it.
The text was updated successfully, but these errors were encountered: