Entry tags:
geeky help: let's play "find the automatic form submission method"
I have noticed recently on several news sites that loading a page makes my browser try to submit a form someplace. I know this because my Firefox is configured to warn me whenever I submit a form that's not encrypted, and each time I load one of these pages I get a warning:
This is the challenge to you geeks: can you figure out which code in the page is making this happen? And can you tell me how you figured it out? An example of a page which triggers this behavior for me:
http://blogs.usatoday.com/ondeadline/2008/03/latest-informat.html
(If that one expires just let me know and I'll find the other one. Reuters.com has begun doing this to me nonstop.)
For my own part, I used "View JavaScript" in the Web Developer Firefox add-on and searched for "submit". In addition to about eleventy-leven methods and variables including "submit" in their name, there are at least two that actually call the form.submit method, one of which is an "initialize" function in http://js.usatoday.com/_common/_scripts/_community/directapi/pork.iframe.js. So I think that's the likely culprit but I'm not confident enough of my JavaScript to go all Hercule Poirot on its ass.
If I can identify the method that's making this happen I'll see if I can figure out how to kill it with Greasemonkey. If some of you web hotshots can help me figure out what's happening I would love to learn from your madness.
The information you have entered is to be sent over an unencrypted connection and could easily be read by a third party. Are you sure you want to continue sending this information?I'm assuming that all of these sites are using some kind of AJAX toolkit that reports reading statistics back to the mothership, and while to some degree I don't care, the warnings and the sense of deception are making me cranky and I want to stop it.
This is the challenge to you geeks: can you figure out which code in the page is making this happen? And can you tell me how you figured it out? An example of a page which triggers this behavior for me:
http://blogs.usatoday.com/ondeadline/2008/03/latest-informat.html
(If that one expires just let me know and I'll find the other one. Reuters.com has begun doing this to me nonstop.)
For my own part, I used "View JavaScript" in the Web Developer Firefox add-on and searched for "submit". In addition to about eleventy-leven methods and variables including "submit" in their name, there are at least two that actually call the form.submit method, one of which is an "initialize" function in http://js.usatoday.com/_common/_scripts/_community/directapi/pork.iframe.js. So I think that's the likely culprit but I'm not confident enough of my JavaScript to go all Hercule Poirot on its ass.
If I can identify the method that's making this happen I'll see if I can figure out how to kill it with Greasemonkey. If some of you web hotshots can help me figure out what's happening I would love to learn from your madness.
no subject
no subject
I use Firebug for all my down and dirty JS devel needs on Firefox.
Losing Battle
no subject
So the form POST might just be an ajax query for more news items, etc.
no subject