Bootstrapped Firefox extension: how to capture navigation events before a page request? -
i'm building bootstrapped firefox extension using mozilla add-on sdk (not traditional xul addon other similar questions).
i'd capture navigation events before issue http requests.
i've been using pagemod.pagemod({contentscriptwhen: "start", onattach: my_code_here})
- however, triggers onattach after page loaded.
that reinforced sdk documentation:
contentscriptwhen = "start": load content scripts after document element inserted dom, before dom content has been loaded
on bootstrapped firefox extension, possible capture navigation events before page loads?
you can intercept, , handle, requests via sdk's system events: how handle every request in ff extension
you don't need pagemod, on firefox level, not per-tab level pagemod.
Comments
Post a Comment