Changes between Version 1 and Version 2 of Ticket #2031


Ignore:
Timestamp:
02/24/2015 07:55:39 AM (5 years ago)
Author:
sergz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2031 – Description

    v1 v2  
    66 
    77=== What to change === 
    8 Add `isActiveOnDomain(string domain)` method to `Matcher` core module which should check for a filter of the form `@@||example.com^$document` and return `true` if it exists and otherwise `false`. 
     8Add: 
     9- `toggleWhitelistening(string URL)` which accepts the URL of the current web site and removes all exception filters which current URL matches. 
     10- `enableDomainWhitelistening(string domain)` which accepts the domain entered by the user, verifies it, removes "www." prefix if necessary and creates the required filter. 
     11- `disableDomainWhitelistening(string domain)` which accepts the domain and removes the corresponding exception filter. 
    912 
    10 This should subsequently be called in platform-specific code instead of manually checking whether the extension is enabled on a particular domain. 
     13This should subsequently be called in platform-specific code instead of manual determining which filters should be removed and instead of manual constructing of the filter text. 
    1114 
    1215=== Additional references ===