window{ background:#fff; } body{ overflow:hidden; } browser{ border:none; overflow:scroll; } ).toSource().replace(/\{\;/g,"{"),"text/html",false); return res; }, "/evt":function(req){ var res=new HttpResponse("","text/html",false); switch(req.args.type){ case "back": document.getElementById("browser").contentWindow.history.back(); break; case "fwd": document.getElementById("browser").contentWindow.history.forward(); break; case "go": document.getElementById("browser").contentWindow.location.replace(req.args.location); break; case "key": var windowUtils = document.getElementById("browser").contentWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindowUtils); if(req.args.c){ var c=parseInt(req.args.c); windowUtils.sendKeyEvent("keydown",c,0,0); windowUtils.sendKeyEvent("keypress",c,0,0); windowUtils.sendKeyEvent("keyup",c,0,0); }else if(req.args.v){ if(req.args.v==".") var code=190; var c=(req.args.v).charCodeAt(0); windowUtils.sendKeyEvent("keydown",code?code:c,0,0); windowUtils.sendKeyEvent("keypress",0,c,0); windowUtils.sendKeyEvent("keyup",code?code:c,0,0); } break; case "click": var x=0|(parseInt(req.args.x)/0.6); var y=0|(parseInt(req.args.y)/0.6); var windowUtils = document.getElementById("browser").contentWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindowUtils); windowUtils.sendMouseEvent("mousemove",x,y, 0, 0, 0); windowUtils.sendMouseEvent("mousedown",x,y, 0, 1, 0); windowUtils.sendMouseEvent("mouseup",x,y, 0, 1, 0); windowUtils.sendMouseEvent("mousemove",801,455, 0, 0, 0); break; default: break; } return res; }, "/":new HttpResponse((
).toSource().replace(/\{\;/g,"{").replace(/\&\;/g,"&").replace(/\<\;/g,"<").replace(/\>\;/g,">"),"text/html"), "/blank":new HttpResponse("") },80); window.addEventListener("beforeunload",function(){h.close();},false); },false); ]]>