過去ログ

                                Page  134457
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   通常モードに戻る  ┃  INDEX  ┃  ≪前へ  │  次へ≫   
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ▼How to take a passw  Cilmglise 2010/01/05(火) 02:48

 ───────────────────────────────────────
 ■題名 : How to take a passw
 ■名前 : Cilmglise <trialfincinna@mymail-in.net>
 ■日付 : 2010/01/05(火) 02:48
 ■Web : http://darmowetapety24.blogspot.com
 -------------------------------------------------------------------------
   I'm making a firefox extension that needs to execute javascript whenever a page is loaded. I currently have a gBrowser.addEventListener("load", function(), false); This works fine, however all my code uses "content.document" this is how I modify the pages contents after the page is loaded. Again, this works fine, however I need to make sure the URL is a certain address before I execute my javascript. I simply use content.location.href.search() to make sure the website is correct. This causes a HUGE problem, because when the browser loads (and restores a session) even though 5 tabs are loading, the content.document always equals the page that is currently selected, not the page that is currently loading. How can I get the document of the page is loading (or rather just finished loading), instead of the tab that is currently selected? Otherwise, how can I make the javascript only execute on a certain URL?

_____________
<a href=http://darmowetapety24.blogspot.com>Darmowe tapety</a>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━    通常モードに戻る  ┃  INDEX  ┃  ≪前へ  │  次へ≫    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━                                 Page 134457