javascript/background.js
// so we perform URL parsing and (maybe) redirection
so we perform URL parsing and (maybe) redirection
so we perform URL parsing and ( maybe ) redirection
function checkURLforRedirection(tabId, parsedURL) {
    if (whitelist.hasOwnProperty(parsedURL.host)) {
        return false;
    }
    if (journals.hasOwnProperty(parsedURL.host)) {
        doRedirectToProxy(tabId, parsedURL);
        return true;
    }
    return false;
}
function checkURLforRedirection ( tabId , parsedURL ) { if ( whitelist . hasOwnProperty ( parsedURL . host ) ) { return false ; } if ( journals . hasOwnProperty ( parsedURL . host ) ) { doRedirectToProxy ( tabId , parsedURL ) ; return true ; } return false ; }
so we perform URL parsing and (maybe) redirection
so we perform URL parsing and ( maybe ) redirection
// First, get out of here if a network has special "whitelisted" journals