Module: background script - searchTermSetup

Methods

(inner) getSearchParam(url, callbackopt)

Finds out the search parameter for a given url.
Parameters:
Name Type Attributes Description
url string The url for which we want to determine the search parameter.
callback function <optional>
Optional callback function, executed when done.
Source:

(inner) getSearchTerm(url, callbackopt)

Grabs the search term for a given url.
Parameters:
Name Type Attributes Description
url string The visited website.
callback function <optional>
Optional callback function.
Source:

(inner) loadSearchTerms(callbackopt)

Searches for possible search terms in the user's browser history. Saves the results to the 'searchTerms' objectStore in our database.
Parameters:
Name Type Attributes Description
callback function <optional>
Optional callback function.
Source:

(inner) saveSearchParam(url, originUrl, dummyTerm, callbackopt)

Sets the url parmaeter for a given url.
Parameters:
Name Type Attributes Description
url string The url for which we want to set the parameter.
originUrl string The origin url (some pages redirect on search).
dummyTerm string The search term used to find out the parameter.
callback function <optional>
Optional callback function.
Source: