Methods
(inner) addMessageListener()
Waits for messages from content scripts and answers these messages appropriately.
- Source:
(inner) answerDisconnect(request, sender, sendResponse)
Removes the tab which requests a disconnect.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source:
(inner) answerIncTodayCount(request, sender, sendResponse)
Increments the todayCount variable because a website got redirected.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source:
(inner) answerResize(request, sender, sendResponse)
Saves the window state when a content script signals that the window has been resized.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source:
(inner) answerSearchTerm(request, sender, sendResponse)
Sends a search term to the requesting content script.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source:
(inner) answerType(request, sender, sendResponse)
Tells the requesting content script which type of action it should perform.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source:
(inner) answerUrlParams(request, sender, sendResponse)
Saves information about url search parameter for the requesting url.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source:
(inner) handleGetInfo(request, sender, sendResponse)
Sends the requested information to a content script.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source:
(inner) handleSendInfo(request, sender, sendResponse)
Receives the information sent by a content script and acts on it.
Parameters:
Name | Type | Description |
---|---|---|
request |
Object | The message which was received. |
sender |
Object | The sender of the received message. |
sendResponse |
function | Callback function to send a response. |
- Source: