number
| null
number
| null
Array.<object>
clearedAt
timestamp is older than the pruning threshold relative to the current time.
chrome.storage.local
and displays a notification to the user.
For recurring schedules, it identifies the latest missed instance.
page
) with options to:
“Create New Schedule…”
action
, browser_action
, page
) with options to:
Run existing schedules (if any are present).
chrome.storage.sync
to populate the menu items.
object
object
function
object
object
object
object
chrome.storage.onChanged
.
object.<string, StorageChange>
number
| null
number
| null
- The timestamp of the next occurrence, or null if the time string is invalid or calculation fails.
Param | Type | Description |
---|---|---|
timeStr | string | The time string, e.g., “14:30” or an ISO string like “2023-01-01T14:30:00”. |
fromTimestamp | number | The timestamp (milliseconds since epoch) from which to calculate the next occurrence. |
number
| null
number
| null
- The timestamp of the earliest next weekly occurrence, or null if inputs are invalid or no valid occurrence is found.
Param | Type | Description |
---|---|---|
timeStr | string | The time string, e.g., “14:30” or an ISO string. |
daysOfWeek | Array.<number> | An array of day numbers (0 for Sunday, 1 for Monday, …, 6 for Saturday). |
fromTimestamp | number | The timestamp (milliseconds since epoch) from which to calculate the next occurrence. |
Array.<object>
clearedAt
timestamp is older than the pruning threshold relative to the current time.
Kind: global functionArray.<object>
- A new array containing only the cleared missed alarm entries
that are within the 30-day retention period.
Param | Type | Description |
---|---|---|
clearedList | Array.<object> | Array of cleared missed alarm objects. Each object is expected to have a clearedAt property (timestamp in milliseconds). |
chrome.storage.local
and displays a notification to the user.
For recurring schedules, it identifies the latest missed instance.
Kind: global function
page
) with options to:
action
, browser_action
, page
) with options to:
chrome.storage.sync
to populate the menu items.
Kind: global function
object
Name | Type | Description |
---|---|---|
name | string | The name of the alarm, typically prefixed with a schedule ID. |
object
Name | Type | Description |
---|---|---|
action | string | The type of action to perform (e.g., “runMissedAlarm”, “clearMissedAlarmEntry”). |
[scheduleId] | string | The ID of the schedule, relevant for schedule-specific actions. |
[missedRunTime] | number | The specific timestamp of a missed run, used for clearing specific entries. |
function
Param | Type | Description |
---|---|---|
[response] | any | The data to be sent as a response. |
object
Name | Type | Description |
---|---|---|
menuItemId | \* | The ID of the menu item that was clicked. |
[pageUrl] | string | The URL of the page where the context menu was clicked. |
[linkUrl] | string | If the clicked item was a link, this is the URL of the link. |
[srcUrl] | string | If the clicked item was an image or video, this is its source URL. |
object
Name | Type | Description |
---|---|---|
[id] | number | The unique identifier for the tab. |
[url] | string | The URL the tab is displaying. |
object
Name | Type | Description |
---|---|---|
reason | string | The reason for the event (e.g., “install”, “update”, “chrome_update”). |
[previousVersion] | string | The previous version of the extension, if it was updated. |
object
chrome.storage.onChanged
.
Kind: global typedefName | Type | Description |
---|---|---|
[oldValue] | \* | The old value of the item, if it existed before this change. |
[newValue] | \* | The new value of the item, if it was set or changed. |
object.<string, StorageChange>