restored "unsafeWindow" fix, as Tycho needs it
[guerillascript.git] / chrome / guerilla-overlay.js
blob54726c076bc9b5b4f6d1ae7b3077fbbb9db4b0ae
1 /* coded by Ketmar // Invisible Vector (psyc://ketmar.no-ip.org/~Ketmar)
2 * Understanding is not required. Only obedience.
4 * This program is free software. It comes without any warranty, to
5 * the extent permitted by applicable law. You can redistribute it
6 * and/or modify it under the terms of the Do What The Fuck You Want
7 * To Public License, Version 2, as published by Sam Hocevar. See
8 * http://www.wtfpl.net/txt/copying/ for more details.
9 */
10 ////////////////////////////////////////////////////////////////////////////////
11 Components.utils.import("chrome://guerilla-script-jscode/content/startup.js").newWindow(this, this.window);
14 function Guerilla_OpenPkgManUI (win) {
15 let inType = "global:console";
16 let uri = "chrome://global/content/console.xul";
17 let topWindow = Services.wm.getMostRecentWindow("guerilla:pkgmanui");
18 if (topWindow) {
19 topWindow.focus();
20 } else {
21 window.open("chrome://guerilla-script/content/guerilla-pkgman.xul", "_blank", "chrome,extrachrome,centerscreen,resizable,scrollbars");