Return to Snippet

Revision: 23864
at February 15, 2010 23:06 by eternicode


Initial Code
window.addEventListener("DOMContentLoaded", function(){
    gBrowser.addEventListener("DOMContentLoaded", function(){
        var script = content.document.createElement("script")
        script.src = "chrome://<ext>/content/script.js"
        content.document.body.appendChild(script)
    }, false)
}, false);

Initial URL

                                

Initial Description

                                

Initial Title
FFExt: Add JS file to loaded document

Initial Tags
javascript, script, extension

Initial Language
JavaScript