SaraC
unread,Sep 7, 2011, 2:10:07 AM9/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mozilla-labs-jetpack
Hi, I'm doing a bit of screen scraping everytime the user gets to a
new page by using a page-worker pointed at the url. Looking for a way
in main.js to tell that the page has changed so I can re-run the page-
worker script. However, there doesn't seem to be an intuitive way. I
tried to keep tabs.activeTab.url in a variable and run a comparison on
an interval, but for some reason that kept returning true (this may be
a syntax error on my part). Any thoughts on a good way to track when
the page is changed? I tried doing the onAttach of a content script,
but that ran several times a page, apparently.