"chrome:" URIs have no host; check for that, and substitute "hohost" instead
[k8imago.git] / chrome / imago-overlay.js
blobabce0086ccbcfe197a96918bf793b398695a9cde
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 let k8ImagoScope = {};
12 Components.utils.import("chrome://k8-imago-code/content/main.js", k8ImagoScope);
13 k8ImagoScope.setupGBrowser(gBrowser);
15 window.addEventListener("load", function () {
16 k8ImagoScope.imagoCallWindowHook("load", window);
17 }, false);
19 window.addEventListener("unload", function () {
20 k8ImagoScope.imagoCallWindowHook("unload", window);
21 }, false);