Use the chrome.history API to interact with the browser's record of visited pages. You can add, remove, and query for URLs in the browser's history. To override the history page with your own version, see Override Pages.
Use the chrome.history API to interact with the browser's record of visited pages. You can add, remove, and query for URLs in the browser's history. To override the history page with your own version, see Override Pages. * available since Chrome 36 * https://developer.chrome.com/extensions/history
(add-url details)
Adds a URL to the history at the current time with a transition type of 'link'.
|details| - https://developer.chrome.com/extensions/history#property-addUrl-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/history#method-addUrl.
Adds a URL to the history at the current time with a transition type of 'link'. |details| - https://developer.chrome.com/extensions/history#property-addUrl-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/history#method-addUrl.
(delete-all)
Deletes all items from the history.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/history#method-deleteAll.
Deletes all items from the history. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/history#method-deleteAll.
(delete-range range)
Removes all items within the specified date range from the history. Pages will not be removed from the history unless all visits fall within the range.
|range| - https://developer.chrome.com/extensions/history#property-deleteRange-range.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/history#method-deleteRange.
Removes all items within the specified date range from the history. Pages will not be removed from the history unless all visits fall within the range. |range| - https://developer.chrome.com/extensions/history#property-deleteRange-range. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/history#method-deleteRange.
(delete-url details)
Removes all occurrences of the given URL from the history.
|details| - https://developer.chrome.com/extensions/history#property-deleteUrl-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/history#method-deleteUrl.
Removes all occurrences of the given URL from the history. |details| - https://developer.chrome.com/extensions/history#property-deleteUrl-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/history#method-deleteUrl.
(get-visits details)
Retrieves information about visits to a URL.
|details| - https://developer.chrome.com/extensions/history#property-getVisits-details.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [results] where:
|results| - https://developer.chrome.com/extensions/history#property-callback-results.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/history#method-getVisits.
Retrieves information about visits to a URL. |details| - https://developer.chrome.com/extensions/history#property-getVisits-details. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [results] where: |results| - https://developer.chrome.com/extensions/history#property-callback-results. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/history#method-getVisits.
(search query)
Searches the history for the last visit time of each page matching the query.
|query| - https://developer.chrome.com/extensions/history#property-search-query.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [results] where:
|results| - https://developer.chrome.com/extensions/history#property-callback-results.
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
https://developer.chrome.com/extensions/history#method-search.
Searches the history for the last visit time of each page matching the query. |query| - https://developer.chrome.com/extensions/history#property-search-query. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [results] where: |results| - https://developer.chrome.com/extensions/history#property-callback-results. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error. https://developer.chrome.com/extensions/history#method-search.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.history namespace.
Taps all valid non-deprecated events in chromex.ext.history namespace.
(tap-on-visit-removed-events channel & args)
Fired when one or more URLs are removed from the history service. When all visits have been removed the URL is purged from history.
Events will be put on the |channel| with signature [::on-visit-removed [removed]] where:
|removed| - https://developer.chrome.com/extensions/history#property-onVisitRemoved-removed.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/history#event-onVisitRemoved.
Fired when one or more URLs are removed from the history service. When all visits have been removed the URL is purged from history. Events will be put on the |channel| with signature [::on-visit-removed [removed]] where: |removed| - https://developer.chrome.com/extensions/history#property-onVisitRemoved-removed. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/extensions/history#event-onVisitRemoved.
(tap-on-visited-events channel & args)
Fired when a URL is visited, providing the HistoryItem data for that URL. This event fires before the page has loaded.
Events will be put on the |channel| with signature [::on-visited [result]] where:
|result| - https://developer.chrome.com/extensions/history#property-onVisited-result.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
https://developer.chrome.com/extensions/history#event-onVisited.
Fired when a URL is visited, providing the HistoryItem data for that URL. This event fires before the page has loaded. Events will be put on the |channel| with signature [::on-visited [result]] where: |result| - https://developer.chrome.com/extensions/history#property-onVisited-result. Note: |args| will be passed as additional parameters into Chrome event's .addListener call. https://developer.chrome.com/extensions/history#event-onVisited.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close