Help me with firefox extension


I have almost ready Firefox extension. I need to simulate a link click event on page from it.

The code must work with links of format (it must execute onclick code and then load the page):

<a href="" onclick="alert('clicked');">Example</a>

Here's the code:


[url removed, login to view]("DOMContentLoaded", random_walker.page_load, true);


function page_load(ev) {

var link = find_link([url removed, login to view])

if ([url removed, login to view] && (typeof([url removed, login to view]) == 'function'))

[url removed, login to view](); ///// THIS DOESN'T WORK!


I know, this is very simple but I haven't time to find the solution.

The extension works and does its work well but it cannot click the link, I want only this part of code.

Please note: javascript in extension doesn't behave exactly as in browser (that's why click() doesn't work)

I'll pay only after you give me full working code. If I like your solution, perhaps I'll select you for the next Firefox tasks.

You can see iMacros extension sources, it does exactly I want.

Taidot: Javascript, Tietojen kaavinta verkosta

Näytä lisää: sources format, firefox web, find help, firefox extension onclick, firefox javascript originaltarget, simulate, load ready, imacros, help work, firefox, extension, ev, browser extension, javascript load click, firefox amp, imacros simple javascript, imacros click, load doesn, javascript click event, firefox browser, firefox web browser, event solution, simple firefox, simple alert, firefox simple

About the Employer:
( 2 reviews ) Amsterdam, Netherlands

Projektin tunnus: #525527