Module implementing the AdBlock rule class.
None |
AdBlockRule | Class implementing the AdBlock rule. |
None |
Class implementing the AdBlock rule.
None |
AdBlockRule | Constructor |
__convertPatternToRegExp | Private method to convert a wildcard pattern to a regular expression. |
filter | Public method to get the rule filter string. |
isCSSRule | Public method to check, if the rule is a CSS rule. |
isEnabled | Public method to check, if the rule is enabled. |
isException | Public method to check, if the rule defines an exception. |
networkMatch | Public method to check the rule for a match. |
regExpPattern | Public method to get the regexp pattern of the rule. |
setEnabled | Public method to set the rule's enabled state. |
setException | Public method to set the rule's exception flag. |
setFilter | Public method to set the rule filter string. |
setPattern | Public method to set the rule pattern. |
Constructor
Private method to convert a wildcard pattern to a regular expression.
Public method to get the rule filter string.
Public method to check, if the rule is a CSS rule.
Public method to check, if the rule is enabled.
Public method to check, if the rule defines an exception.
Public method to check the rule for a match.
Public method to get the regexp pattern of the rule.
Public method to set the rule's enabled state.
Public method to set the rule's exception flag.
Public method to set the rule filter string.
Public method to set the rule pattern.