Class: Main

Main()

new Main()

Main extension functionality
Source:

Extends

Methods

(static) initContextMenu()

Context menu option initialization
Source:

(static) interceptRequests()

intercept request handler
Source:

(static) onContextMenuClick(info, tab)

Context menu option click handler
Parameters:
Name Type Description
info Object info object
tab Object tab object
Source:

(static) onIconClick()

extension icon click handler:- opens option-page to show listing of marked urls.
Source:

(static) performURLChecks(details, callback)

Performs a check on the requested url to see if it marked as Incognito
Parameters:
Name Type Description
details object Details object provided by `chrome.webRequest.*` methods
callback function Callback that run if url is marked as Incognito
Source:

(static) redirect(details)

Creates a new tab if a Incognito URL is requested
Parameters:
Name Type Description
details object Details object provided by `chrome.webRequest.onBeforeRequest` method
Source:

(static) redirectOnComplete(details)

Goes back if a Incognito marked URL has been navigated to
Parameters:
Name Type Description
details object Details object provided by `chrome.webRequest.onCompleted` method
Source: