/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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);