📜 ⬆️ ⬇️

HabrAjax learned to recognize the 500th Habr page and offers to switch to copies of pages on the Web

If you need to read something from Habr, and the site does not work (as it was in the last couple of hours), there used to be only waiting or switching to other resources. Now the HabrAjax script has added the recognition of a blank page, which happens with the 500th error, and the suggestion to visit the page of the copiers. Page - completely without design, because the styles of the site, too, are not loaded. But this is better than observing a blank page and searching for similar solutions on your own. If an article is viewed that is in Google cache, it is read (with ZenComment styles, if installed). As experience shows, the pages quickly get into Google-cache (minutes - tens of minutes), so we have a copy of the site shortly before the accident.

The only difference is that the “entry” to the site via Google-cache occurs from under an unauthorized user. Therefore, the feed / feed so it will be impossible to view, and clicking on the links each time will be accompanied by a warning that the site is not working.

For example, in the morning of March 6, 2013 there was a similar situation with an error. After finalizing the script, a completely blank page began to look filled out and explaining what happened.


')
Of course, this is the first step to improve the user script interface on a blank page, and further observations will suggest what else is useful to have on it. For example, it is already clear that opening links with a script in a new window is not always convenient - navigating through the cache leads to many open windows (tabs). But the inactivity of the site is a rare phenomenon, therefore, perhaps, there will be few reasons to refine the interface.

Google’s cache pages for some time (approximately February 2013) have learned how to display with ZenComment + HabrAjax: an example of a link and a screenshot:



Therefore, it creates a rather complete impression that we are reading the original site while it is not working.

Yuzerskript will not help in cases if the Internet is disconnected and there is no answer from the server at all. In such cases, add-ons to each browser could help to replace or supplement the standard end-call pages (“Firefox could not find server XXX”, “Server XXX was not found due to a DNS search error” (Chrome)).

Another recent addition to the script is described in the article " Commenting with a quote of 1 click in the uploaded articles ."

To be fully prepared before the next general outage, install the new version of the HabrAjax script .

UPD: fixed the evening (from 08/06/13) change of layout on the site - there was a violation of the response buttons in the comments on the article (new version 107).

Source: https://habr.com/ru/post/171769/


All Articles