mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-10 01:40:17 +01:00
35 lines
860 B
Plaintext
35 lines
860 B
Plaintext
|
<?xml version="1.0"?>
|
||
|
|
||
|
<overlay id="ovVenkman"
|
||
|
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[
|
||
|
|
||
|
window.addEventListener("load", InspectorVenkmanOnLoad, false);
|
||
|
|
||
|
function InspectorVenkmanOnLoad()
|
||
|
{
|
||
|
console._commands.add("inspect", "onInputInspect", "<object>", "Inspect somethin', yo.");
|
||
|
}
|
||
|
|
||
|
console.onInputInspect = function (e)
|
||
|
{
|
||
|
var v = evalInTargetScope (e.inputData);
|
||
|
|
||
|
if (!(v instanceof jsdIValue) || v.jsType != jsdIValue.TYPE_OBJECT)
|
||
|
{
|
||
|
var str = (v instanceof jsdIValue) ? formatValue(v) : String(v)
|
||
|
display (getMsg(MSN_ERR_INVALID_PARAM, [MSG_VAL_EXPR, str]),
|
||
|
MT_ERROR);
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
inspectObject(v);
|
||
|
}
|
||
|
|
||
|
]]></script>
|
||
|
|
||
|
</overlay>
|