Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Use the Inspector API

这篇翻译不完整。请帮忙从英语翻译这篇文章

火狐附加组件可以访问chrome浏览器的这些东西:chrome://browser/content/devtools/inspector/inspector.xul上下文:

window.inspector

定义在inspector-panel.js. 的属性和函数:

  • .selection - information about the inspector's selection:
    • .isNode() - returns true if selection is node.
    • .node - returns the actual element from the page
    • .window - the window object of the frame the selection is in.
  • .markDirty() - marks that the page has been changed by the inspector - a warning will be shown when leaving the page, since changes made through the inspector are rewritten on reload.

Bindable events using on:

markuploaded

Called when the left panel has been refreshed, after page change.

ready

Called on first markuploaded.

pseudoclass

Called after toggle of a pseudoclass.

layout-change

"low-priority change event for things like paint and resize."

文档标签和贡献者

 此页面的贡献者: webery
 最后编辑者: webery,