javascript/background.js
// Modularize so we only parse the URL once (parsing is expensive!)
Modularize so we only parse the URL once (parsing is expensive!)
Modularize so we only parse the URL once ( parsing is expensive! )
function doRedirectToProxy(tabId, parsed, appendString) {
    if (!appendString) {
        appendString = '';
    }
    var proxifiedURL = parsed.protocol + "://" + parsed.host + proxyURL + parsed.relative + appendString;
    try {
        chrome.tabs.update(tabId, {url: proxifiedURL});
    } catch(e) {
    }
}
function doRedirectToProxy ( tabId , parsed , appendString ) { if ( ! appendString ) { appendString = '' ; } var proxifiedURL = parsed . protocol + "://" + parsed . host + proxyURL + parsed . relative + appendString ; try { chrome . tabs . update ( tabId , { url : proxifiedURL } ) ; } catch ( e ) { } }
Modularize so we only parse the URL once (parsing is expensive!)
Modularize so we only parse the URL once ( parsing is expensive! )
// Pre-rendered magic tab that we can't update.