Changes between Version 2 and Version 3 of Ticket #2031


Ignore:
Timestamp:
02/24/2015 10:55:18 AM (5 years ago)
Author:
greiner
Comment:

I streamlined the description a bit to make it more consistent with our current naming and also added missing information.

It's still missing the information to which core module those functions should be added. Currently, that appears to be implemented in lib/appSupport.js and lib/ui.js for Firefox and in options.js and popup.js for Chrome/Opera/Safari.

However, retrieving the information whether a page/site is whitelisted would still be platform-specific (e.g. Firefox, Chrome/Opera/Safari). So that would either need to be added to this issue or require a separate issue.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2031 – Description

    v2 v3  
    77=== What to change === 
    88Add: 
    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. 
     9- `togglePageWhitelisting(string url)` which accepts the URL of the current web site and creates the required filter or removes the corresponding exception filter if it already exists. 
     10- `toggleSiteWhitelisting(string domain)` which accepts the domain entered by the user, verifies it, removes "www." prefix if necessary and creates the required filter or removes the corresponding exception filter if it already exists. 
    1211 
    1312This 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.