javascript hit counter

TryAgain extension

TryAgain is an extension for Mozilla Firefox that automatically keeps retrying when a server is not found. When you reach Firefox’s built-in page saying ‘Server not found’, a countdown timer starts running and after a user-defined interval it page will refresh, hence retrying to find the server. TryAgain is a slim and friendly extension and is, at the time of writing, downloaded over 44.000 times from addons.mozilla.org.

TryAgain logo

The functionality of TryAgain was originally created in the shape of a greasemonkey script, created by my friends Eric and Paul Lammertsma. If you are more interested in the userscript rather than the extension, you can download it here.

Softpedia 100% clean award for TryAgain

Besides retrying TryAgain offers additional functionality: it presents two links that allow you to search for the missing web page in either Google Cache or the Wayback Machine, with just a single click of a button. The newest version of TryAgain contains a counter that shows how many refreshes have been done, and allows the user to limit that number to a certain maximum.

More detailed information can be found by reading the blog posts in the TryAgain category.

Version history

Version 3.2 - 37Kb.
Added Firefox 3 support. Chinese [zh-CN] locale added. Stops countdown when user starts typing in the address bar.
Bugs solved: TryAgain does no longer refresh the SSL Exception page.
From this version on TA is no longer compatible with FF2.0 and earlier version.
As of July 6th 2009, this version is compatible with FF3.5. No version number update.

Version 3.1 - 36Kb.
Bugs solved: now also works in frames and iframes. Russian [ru-RU] locale added.

Version 3.0 - 34Kb.
Complete reimplementation with cleaner and more efficient code. Adjustable limit to the number of retries. Option to hide the menu item. Pressing ESC will stop countdown. French [fr-FR] locale added.

Version 2.0 - 15Kb.
Additional functionality by Aldo Vargas: when the server is not found, two links enable the user to search for the requested web page in Google Cache or the WayBack Machine - with just one click.
This is the first version compatible with Firefox 2.0.

Version 1.2 - 36Kb.
Spanish [es-ES] and Italian [it-IT] locale added.

Version 1.1 - 35Kb.
This version will also stop when the user presses the ’stop trying’ button after the http request has been sent.

Version 1.0 - 32Kb.
Initial version. Original userscript packed into an extension.

Screenshot

Screenshot of version 3.1
[screenshot]

56 Responses to “TryAgain extension”

  1. TryAgain insiste cuando un website no responde « AlacranX Says:

    […] TryAgain se mantendrá tratando de cargar una página cuando ésta no responda. En cuanto aparece el mensaje estándar de error de carga de página (como el que se ve en la imagen), verás un mensaje que te dice que en 5 segundos se reintentará la carga de la página. El tiempo puede configurarse en las opciones de la extensión. Además, la página de error de carga de página mostrará enlaces para intentar ver el registro de la página en Google Cache o en la WayBack Machine. Si en algún momento necesitas desactivar la extensión, puedes hacerlo simplemente desmarcando la opción “Activar TryAgain” en el menú Herramientas. […]

  2. Paul Says:

    We discussed some ideas for improvement (for example, discovering some way of resetting the counter when hitting refresh), but this isn’t high priority at all. I probably wouldn’t even use that feature.

    I love the fact that you can toggle the Tool menu entry! My Tools menu is getting pretty littered as it is.

    A minor point is that the only way to temporarily disable TryAgain is by enabling the Tool menu entry. Perhaps the Add-on options screen should also have a checkbox allowing you to disable TryAgain? You wouldn’t even need an extra translation — just recycle the one from the menu!

    But all-in-all, the add-on is perfect! :)

  3. Mathijs Says:

    I recently discovered a bug in the latest version of TryAgain: it gives an error (and refuses work) when running in a frame. This is due to the fact that TryAgain counts the number of times it has been refreshing in the tab it’s located in and does not correctly try to access the tab when loaded in a subframe.
    I will try to solve this problem as soon as I have the time. (Currently busy on an update for FindThatFont, and a school project…)

    Note that version 2.0 does not have this bug.

  4. Sergej Says:

    Hello!
    I apologize for the English, I translated text through with the Russian into English through Google Translate, nades that you understand the essence of the issue.
    Your extension is triggered if there is a standard dialogue Firefox, but I use local caching proxy server, which gives Firefox is not the standard response, the standard dialogue does not appear in Firefox and TryAgain inoperative. Could you do in your TryAgain to hand inscribed response from the server that would be TryAgain worked, or Give please, that you can change the file extension so that it worked on the innovative responses.
    Thanks in advance.

  5. Mathijs Says:

    I’ll look into it and see if I can fix some things. Please don’t expect anything short-term :)

  6. Agagooga Says:

    Great! Could you update the copy on Mozilla Addons though? Thanks!

  7. Agagooga Says:

    Also, it would be nice to add compatibility with Resurrect Pages and the new add SSL exception dialog (on Minefield builds)

  8. xeen Says:

    I really like this extension because it’s a great timeserver when a server didn’t work the first time, but what I found annoying is that when you try to navigate away from an error page.
    Given the TryAgain timer is set to a pretty short interval (like 5 seconds) and you try to navigate to a slow loading bookmark, URL, history entry or similar, TryAgain reloads in the background thus canceling the user’s link request.
    Long story short: TryAgain should detect if the users wants to move away from the error page and stop its reloading efforts.

    Pleeeeeaaaaase? :)

    xeen

  9. Mathijs Says:

    That is indeed something that can be annoying.
    I haven’t got around to figuring out how to solve that, but in the meanwhile you can work around it by pressing the Escape key before typing a new url or selecting a bookmark. Escape is the same as the ‘Stop’ or ‘Stop trying’ button, only quicker ;)
    It will be solved in the next version.

  10. Anonymous Says:

    A release with Firefox 3 support??? :(

  11. Dan Says:

    Mathijs: Agagooga touches on this, but doesn’t really explain it. You might already know about it but I’ll reiterate in order to let you know at least one more person is annoyed by this than you thought was before I posted this. :)

    TryAgain shows up in SLL certificate error dialogs… it shouldn’t, because then it hides the important “Add an exception” link. Reloading the site with the bad cert over and over again without adding an exception isn’t going to get you any closer to actually visiting it. Right now the only workaround is to disable TryAgain.

    To stop TryAgain from refreshing when the user enters a url, couldn’t you hook the body.onunload event (or window.onunload)? Not sure if that fires when you START navigating away or when the next page is actually starts loading. Not sure if the error pages are XUL or HTML or if onunload works in XUL if it is XUL… It would seem a good place to start though.

    Anonymous: The current version runs fine in FF3 for me, apart from the above problems I have.

  12. Mathijs Says:

    Thank you, that certainly makes things more clear. I’ll fix it for the next version.

    About FF3 compatibility: I’ve updated the current version to support the latest FF 3 beta 5. Although internally nothing changed, the previous version was compatible with FF3 up to the beta 2 release.

  13. Ngamer01 Says:

    mathijs, I have been an avid user of your extensions since learning about it a couple/few years ago.

    After seeing you updated for FF 3b5, I tried to manually bump your extension to FF 3 RC 1 and it works without major problems (Windows XP). The only issue is that it conflicts with another add-on called Resurrect Pages (it also updated, but lacks RC 1 compatbility — I’ve manually bumped that one too).

    With the two bumped add-ons, Try Again took priority of Resurrect Pages causing RP to not show when I arrived at a site that was down temporary (like server outage). While you’re working on Try Again’s next version for FF 3, could you do anything to eliminate the conflict with Resurrect Pages?

    Or should I talk to the author of RP instead? Or maybe you two can talk to eliminate conflicts between the two add-ons.

    You can find Resurrect Pages here:
    https://addons.mozilla.org/en-US/firefox/addon/2570

  14. Mathijs Says:

    I’ve looked into this before and it turned out that RP, just like TA, replaces the original error page with its own rather than modifying it. This conflict cannot be solved unless PG and TA are merged into a single extension :)

  15. Ngamer01 Says:

    I see… Guess I’ll have to pick one over the other and TryAgain is more useful even though I want both add-ons to work (Resurrect Pages gives me one click access to several search engine caches whenever I want or when I get an error page like “Server Not Found”.

    Thanks anyways for your help.

  16. Nizaury Says:

    Very useful extension, but doesn’t work on Firefox 3 RC1.

  17. damiankrol Says:

    Ngamer01, how did you made TA work with FF3.1RC1?
    When I receive page load error, I see TA buttons but clicking on them makes nothing. As well as the page isn’t reloaded.

  18. damiankrol Says:

    *FF3RC1

  19. Kamui Says:

    Please! Make TryAgain compatible with Firefox 3

  20. Artem Russakovskii13 Says:

    Same request here, please for FF3.

  21. jhol37 Says:

    TryAgain doesnt work with firefox3. Its a fantastic plugin for firefox, so please make it run in the new firefox version.

    Thx a lot

  22. Jayson Quilantan Says:

    Ditto the requests to update for Firefox 3!

  23. Peter Says:

    Love you plug-in!
    Will there be a version for ff3?

  24. Gabri Says:

    I love this plugin too. Will there be Firefox 3 support? is it planed almost?

  25. Ken Saunders Says:

    I’m yet another one requesting that you please update TA so that it’s compatible with Fx 3.
    I’m a member of deviantART.com and that site constantly has problems with loading pages the first time around.
    TA has been a life saver in dealing with that.

  26. Merv Says:

    I have to use a cellphone internet connection and found Tryagain immensely useful. But since upgrading to FF3 it’s become so frustrating when the connection drops in and out. Please could we have an upgrade.

  27. Elizabeth Says:

    This extension is so useful! Any chance of getting it to work with FF3?

  28. Galloba Says:

    I beg for an update for Firefox 3.

    Please

  29. Dennis Says:

    Looking forward for Firefox 3 version. Very needed!

  30. lelo_eet Says:

    PLease make it work on FF3!

    Thanks in advance!

  31. mdduan Says:

    ff3 please.. cant surf in peace without it

  32. Merv Says:

    Thanks very much for the update

  33. James Says:

    I am at a site that has a really bad proxy server, and we are constantly getting 504 Gateway Timeout and 500 Server error messages.
    Is there any chance to modify it to recognise and retry on 504 and 500 error?
    Thanks.

  34. CheaterBeater Says:

    Better if user can self input error messages numbers for try again.

  35. Gene Says:

    Is there a way that TryAgain can get past the

    To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.

    dialog box that pops up on some sites? Or is there another way to get past this problem?

  36. Steve Says:

    Same thing as Gene said above, is there a way to bypass the “must send information that will repeat any action” prompt?

  37. Mathijs Says:

    Bypassing that dialog box surely seems to be desirable, but both automatically resending the data and requesting the page without sending the data could lead to unwanted results. Think of situations where you are purchasing something online and halfway through loading the confirmation page your wifi hiccups and seconds later TryAgain places another purchase automatically. Even experienced users might miss it or forget it and get screwed.

    There might be other addons available that hide this window, although I haven’t been able to find any quickly. My guess is that the dialog is rather low-level and hard to overrule.

    I agree that the dialog is annoying, however removing it will not be implemented in TryAgain. I’ll keep an eye out for other fixes though.

  38. Gene Says:

    Well, maybe if there was some kind of whitelist it could be implemented safely.

  39. Kristian Says:

    Suggested improvement.

    When the maximum attempts have been reached. I chick the try again button and nothing happens.
    I suggest that if the button is clicked then the counter should be reset.
    Thanks
    Kris

  40. Dove Boy Says:

    Nice add-on, however it’s incompatible with Resurrect Pages and ErrorZilla Plus. TryAgain only presents two links called google cache and wayback Machine, but ErrorZilla or Resurrect Pages presents more. When TryAgain is open, neither ErrorZilla nor Resurrect Pages works on error page, could TryAgain fixes this problem in next version?

  41. Tom Says:

    your addon will interact with errorzilla mod,maybe you can check this problem out

  42. Jochem Says:

    Will my favorite add-on eventually work on Firefox 3.5 too?

  43. Jhol Says:

    Please make it run on FF.3.5!!
    THX

  44. Diego Says:

    Hey LOVE TryAgain… so usefull… but it doesnt work with 3.5!!!!! PLEASE UPDATE!!! u guys ROCK….! thanx

  45. Dan Says:

    Hi, I’m also looking forward to an update to your TryAgain extension that makes it compatible with Firefox 3.5

    Thanks!

  46. recce Says:

    Please could you make a version for Mozilla Prism. it will be very much appreciated

  47. Anna Says:

    1. During a retry the “Try X of Y” line disappears momentarily causing a flicker as the frame shrinks one line. It then reappears with the next value of X.

    2. After a few retries, a previous page is sometimes fetched rather than the one requested.

    Firefox 3.5.2 (English) running on Chinese WinXP SP3. TryAgain 3.2.0

  48. Troy Says:

    I’m guessing from the comments above that there is no way to work with Privoxy error pages? I’d like to have the ability to TryAgain when working through Privoxy-TOR, but Privoxy seem to replace a standard error page with it’s own when there is a 404 timeout.

    I’d really appreciate it if you could check this out, as TA is a GREAT add-on!

  49. Troy Says:

    I really like this extension! I have a session that’s got 232 tabs in 6 windows, and am on dial-up. This extension does a *lot* of the work of restoring that when I have to restart FireFox.

    A suggestion to make it even more useful: Add a random setting, so that it will TryAgain after a certain base + (0 -> R) seconds. This would be best if *each TAB* could have a different random interval. This would tend to spread out the retries if a lot of pages time out at once.

  50. john bosler Says:

    i like your program a lot

    i have a suggestion for improvement

    would there be any way that opening a new link be intercepted and placed in a que. when one page has been loaded it would go to open the next page in the que and so on. I get a lot of time outs because i am on dial-up and open up links as i am reading thru articles

    i figure that this would be a nice additional feature to TryAgain

  51. mj149 Says:

    ??????? ?? ??????????. ???? ????? ?????? ?.?. FF 3.6 ????????????.

  52. Diego Says:

    PLEASE FIX IT for firefox 3.6!!!! I NEED THIS>>> PLEAAAAASEEEE updateeee :)

  53. camac Says:

    plz update to fx3.6 thx this is a great addon

  54. zipi Says:

    Support for 3.6?! I try to change maxversion to 3.6 but nothing happened :(

  55. James Says:

    With “Nightly Tester Tools” you can use TryAgain 3.2 on Firefox 3.6.

    But i hope for an update anyhow .

  56. TryAgain extension : Real-Time Finance Says:

    […] Share This […]

Leave a Reply


Close
E-mail It