mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-10 01:40:17 +01:00
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
|
<?xml version="1.0"?>
|
||
|
|
||
|
<!DOCTYPE overlay SYSTEM "chrome://inspector/locale/tasksOverlay.dtd" >
|
||
|
|
||
|
<overlay id="eInspectorTasksOverlay"
|
||
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||
|
|
||
|
<script type="application/x-javascript" src="chrome://inspector/content/hooks.js"/>
|
||
|
<script type="application/x-javascript">
|
||
|
<![CDATA[
|
||
|
function inspectorWindowLoad()
|
||
|
{
|
||
|
setTimeout(initWindowMediator, 0);
|
||
|
}
|
||
|
|
||
|
function initWindowMediator()
|
||
|
{
|
||
|
// Load the Window DataSource so that browser windows opened subsequent to DOM
|
||
|
// Inspector show up in the DOM Inspector's window list.
|
||
|
var windowDS = Components.classes["@mozilla.org/rdf/datasource;1?name=window-mediator"]
|
||
|
.getService(Components.interfaces.nsIWindowDataSource);
|
||
|
}
|
||
|
|
||
|
window.addEventListener("load", inspectorWindowLoad, false);
|
||
|
]]>
|
||
|
</script>
|
||
|
|
||
|
<commandset id="mainCommandSet">
|
||
|
<command id="Tasks:Inspector" oncommand="inspectDOMDocument();"/>
|
||
|
<command id="Tasks:InspectPage" oncommand="inspectDOMDocument(content.document);"/>
|
||
|
</commandset>
|
||
|
|
||
|
<keyset id="mainKeyset">
|
||
|
<key id="key_inspectPage" key="&inspectorTaskCmd.commandkey;" modifiers="accel,shift" command="Tasks:InspectPage"/>
|
||
|
</keyset>
|
||
|
|
||
|
<menupopup id="menu_ToolsPopup">
|
||
|
<menuitem id="menu_inspector" label="&inspectorTaskCmd.label;"
|
||
|
insertafter="javascriptConsole" key="key_inspectPage"
|
||
|
accesskey="&inspectorTaskCmd.accesskey.ff;" command="Tasks:InspectPage"/>
|
||
|
</menupopup>
|
||
|
|
||
|
</overlay>
|