Mercurial > powerbox
comparison extension/content/js/xul/browser.js @ 4:1c02976d8809
Changed to Firebug's progress listener, which allows us to inject our code before any scripts are executed on target pages.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 06 Aug 2009 17:18:45 -0700 |
parents | 889c2fd4c9cf |
children |
comparison
equal
deleted
inserted
replaced
3:413435fc6202 | 4:1c02976d8809 |
---|---|
1 (function() { | 1 (function() { |
2 var jsm = {}; | 2 var jsm = {}; |
3 Components.utils.import("resource://powerbox/modules/setup.js", jsm); | 3 Components.utils.import("resource://powerbox/modules/setup.js", jsm); |
4 jsm.PowerboxSetup.installToWindow(window); | 4 |
5 window.addEventListener( | |
6 "load", | |
7 function onLoad(event) { | |
8 window.removeEventListener("load", onLoad, false); | |
9 jsm.PowerboxSetup.installToWindow(window); | |
10 }, | |
11 false | |
12 ); | |
5 })(); | 13 })(); |