Liking cljdoc? Tell your friends :D

chromex.ext.devtools.inspected-window

clj

Use the chrome.devtools.inspectedWindow API to interact with the inspected window: obtain the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page.

Use the chrome.devtools.inspectedWindow API to interact with the inspected window: obtain the tab ID for the inspected
page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within
the page.

  * available since Chrome 36
  * https://developer.chrome.com/extensions/devtools.inspectedWindow
raw docstring

api-tableclj

source

evalclj/smacro

(eval expression)
(eval expression options)

Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-compliant object, otherwise an exception is thrown. The eval function can report either a DevTools-side error or a JavaScript exception that occurs during evaluation. In either case, the result parameter of the callback is undefined. In the case of a DevTools-side error, the isException parameter is non-null and has isError set to true and code set to an error code. In the case of a JavaScript error, isException is set to true and value is set to the string value of thrown object.

|expression| - An expression to evaluate. |options| - The options parameter can contain one or more options.

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 [result exception-info] where:

|result| - The result of evaluation. |exception-info| - An object providing details if an exception occurred while evaluating the expression.

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/devtools.inspectedWindow#method-eval.

Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a
JSON-compliant object, otherwise an exception is thrown. The eval function can report either a DevTools-side error or a
JavaScript exception that occurs during evaluation. In either case, the result parameter of the callback is undefined. In
the case of a DevTools-side error, the isException parameter is non-null and has isError set to true and code set to an
error code. In the case of a JavaScript error, isException is set to true and value is set to the string value of thrown
object.

  |expression| - An expression to evaluate.
  |options| - The options parameter can contain one or more options.

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 [result exception-info] where:

  |result| - The result of evaluation.
  |exception-info| - An object providing details if an exception occurred while evaluating the expression.

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/devtools.inspectedWindow#method-eval.
sourceraw docstring

eval*cljs

(eval* config expression options)
source

gen-callclj

source

gen-wrapclj/smacro

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

get-resourcesclj/smacro

(get-resources)

Retrieves the list of resources from the inspected page.

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 [resources] where:

|resources| - The resources within the page.

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/devtools.inspectedWindow#method-getResources.

Retrieves the list of resources from the inspected page.

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 [resources] where:

  |resources| - The resources within the page.

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/devtools.inspectedWindow#method-getResources.
sourceraw docstring

get-resources*cljs

(get-resources* config)
source

get-tab-idclj/smacro

(get-tab-id)

The ID of the tab being inspected. This ID may be used with chrome.tabs.* API.

https://developer.chrome.com/extensions/devtools.inspectedWindow#property-tabId.

The ID of the tab being inspected. This ID may be used with chrome.tabs.* API.

https://developer.chrome.com/extensions/devtools.inspectedWindow#property-tabId.
sourceraw docstring

on-resource-added*cljs

(on-resource-added* config channel & args)
source

on-resource-content-committed*cljs

(on-resource-content-committed* config channel & args)
source

reloadclj/smacro

(reload)
(reload reload-options)
Reloads the inspected page.

  |reload-options| - https://developer.chrome.com/extensions/devtools.inspectedWindow#property-reload-reloadOptions.

https://developer.chrome.com/extensions/devtools.inspectedWindow#method-reload.
sourceraw docstring

reload*cljs

(reload* config reload-options)
source

tab-id*cljs

(tab-id* config)
source

tap-all-eventsclj/smacro

(tap-all-events chan)

Taps all valid non-deprecated events in chromex.ext.devtools.inspected-window namespace.

Taps all valid non-deprecated events in chromex.ext.devtools.inspected-window namespace.
sourceraw docstring

tap-on-resource-added-eventsclj/smacro

(tap-on-resource-added-events channel & args)

Fired when a new resource is added to the inspected page.

Events will be put on the |channel| with signature [::on-resource-added [resource]] where:

|resource| - https://developer.chrome.com/extensions/devtools.inspectedWindow#property-onResourceAdded-resource.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/devtools.inspectedWindow#event-onResourceAdded.

Fired when a new resource is added to the inspected page.

Events will be put on the |channel| with signature [::on-resource-added [resource]] where:

  |resource| - https://developer.chrome.com/extensions/devtools.inspectedWindow#property-onResourceAdded-resource.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/devtools.inspectedWindow#event-onResourceAdded.
sourceraw docstring

tap-on-resource-content-committed-eventsclj/smacro

(tap-on-resource-content-committed-events channel & args)

Fired when a new revision of the resource is committed (e.g. user saves an edited version of the resource in the Developer Tools).

Events will be put on the |channel| with signature [::on-resource-content-committed [resource content]] where:

|resource| - https://developer.chrome.com/extensions/devtools.inspectedWindow#property-onResourceContentCommitted-resource. |content| - New content of the resource.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/devtools.inspectedWindow#event-onResourceContentCommitted.

Fired when a new revision of the resource is committed (e.g. user saves an edited version of the resource in the Developer
Tools).

Events will be put on the |channel| with signature [::on-resource-content-committed [resource content]] where:

  |resource| - https://developer.chrome.com/extensions/devtools.inspectedWindow#property-onResourceContentCommitted-resource.
  |content| - New content of the resource.

Note: |args| will be passed as additional parameters into Chrome event's .addListener call.

https://developer.chrome.com/extensions/devtools.inspectedWindow#event-onResourceContentCommitted.
sourceraw docstring

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

× close