How to embed a greasemonkey script when connection has timed out?
<p>I implemented a greasemonkey script to cycle around a website to gather data and send it to my server via ajax call.</p>

<p>Sometimes, during each page transition, connection goes timeout, firefox shows the usual "The connection has timed out" and therefore my script cannot be executed properly.</p>

<p>So when it happens, how can I force the browser to refresh the page or handle this status? Can I reach this behaviour just using greasemonkey or I need something else?</p>