Global

Methods

deleteTabs(tabs)

This function uses Chrome Tabs API to log the tab domains, get the number of tabs for each parent domain, and gives option to user to delete tabs by domain. The event listener within this method extracts the text the user clicks on, so that they can delete tabs by domain name.
Parameters:
Name Type Description
tabs * The tabs open in current Chrome window
Source:

sortingTabs(tab1, tab2)

This function takes two tabs as parameters at a time, and sorts them in lexicographic order to present the domains in alphabetical order in the Chrome Extension table
Parameters:
Name Type Description
tab1 * The first tab to compare, to sort lexicographically
tab2 * The second tab to compare, to sort lexicographically
Source:
Returns:
The tab that is lexicographically higher (to be sorted on the higher end)