So..this script extension for Firefox. this is somelika webspider written in javascript. what i want to do:
I want it to load the page, they do some work, then go to another page (using the URL from the loaded page). After loading a new page, the spider does the same job.
The algorithm is similar to this:
- wait for the page to load
- do some work
- choose another URL
- go to this url
- go over 1.
in my main function, I am doing this code:
gBrowser.addEventListener("DOMContentLoaded",haXahv8, false);
and everything works fine until I go to another page ... how can I reuse the DOMContentLoaded event in my Firefox extension? So the question is: is it possible to reuse the load / DOMContentLoaded event in the Firefox extension for different pages? if so, how?
ps \ I used to solve this problem, em with window forms and webbrowser + C ++ ... oh, what time it was ... a dream! because everything works fine =)
javascript firefox
lazybob
source share