Return to Snippet

Revision: 23933
at February 16, 2010 17:36 by eternicode

Initial Code
function set_pageload(browser){browser.addEventListener("DOMContentLoaded", pageload, false)}
function add_tab(e){set_pageload(}
function pageload(){
    var doc = this.contentWindow.document

    // modify page using "doc" as "document"

window.addEventListener("load", function(){
    // Listen to first page/tab
    // Listen to other pages/tabs as they are opened
    gBrowser.tabContainer.addEventListener("TabOpen", add_tab, false)
}, false)

Initial URL

Initial Description

Initial Title
FFExt: Modify any page on pageload (including background tabs)

Initial Tags
javascript, extension

Initial Language