Return to Snippet

Revision: 24012
at February 18, 2010 12:34 by eternicode


Initial Code
var _jq = "chrome://clpics/content/jquery-1.3.2.min.js"

// Load jQuery without messing with the toolbars.
//  Dunno why this is necessary, but it is and it works, so meh
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
            .getService(Components.interfaces.mozIJSSubScriptLoader)
            .loadSubScript(_jq);

Initial URL

                                

Initial Description
If you just use a `<script>` element in the overlay, the browser toolbars are reset to their default configuration (at least with jQ 1.3.2).

Initial Title
FFExt: Safely include jQuery in a browser overlay

Initial Tags
javascript, extension

Initial Language
JavaScript