Liking cljdoc? Tell your friends :D

chromex.ext.history

clj

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 26
  * https://developer.chrome.com/extensions/history
raw docstring

add-urlclj/smacro

(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.
sourceraw docstring

add-url*cljs

(add-url* config details)
source

api-tableclj

source

delete-allclj/smacro

(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.
sourceraw docstring

delete-all*cljs

(delete-all* config)
source

delete-rangeclj/smacro

(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.
sourceraw docstring

delete-range*cljs

(delete-range* config range)
source

delete-urlclj/smacro

(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.
sourceraw docstring

delete-url*cljs

(delete-url* config details)
source

gen-callclj

source

gen-wrapclj/smacro

(gen-wrap kind item-id config & args)
source

get-visitsclj/smacro

(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.
sourceraw docstring

get-visits*cljs

(get-visits* config details)
source

on-visit-removed*cljs

(on-visit-removed* config channel & args)
source

on-visited*cljs

(on-visited* config channel & args)
source

(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.
sourceraw docstring

search*cljs

(search* config query)
source

tap-all-eventsclj/smacro

(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.
sourceraw docstring

tap-on-visit-removed-eventsclj/smacro

(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.
sourceraw docstring

tap-on-visited-eventsclj/smacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close