Posted By

eternicode on 02/15/10


Tagged

javascript script Firefox extension mdc addon


Versions (?)

FFExt: Add JS file to loaded document


 / Published in: JavaScript
 

  1. window.addEventListener("DOMContentLoaded", function(){
  2. gBrowser.addEventListener("DOMContentLoaded", function(){
  3. var script = content.document.createElement("script")
  4. script.src = "chrome://<ext>/content/script.js"
  5. content.document.body.appendChild(script)
  6. }, false)
  7. }, false);

Report this snippet  

You need to login to post a comment.