<commit_before># robustify.js

robustify.js is a javascript that attempts to fight [link rot](https://en.wikipedia.org/wiki/Link_rot) or content drift with an implementation of Herbert Van de Sompel's [Memento Robust Links - Link Decoration](http://robustlinks.mementoweb.org/spec/) specification, in context of the [Hiberlink](http://hiberlink.org/) project.

robustify.js will make any clicked hyperlink test if the linked page is available online. If it is not, it will redirect the user to a web archive, by default using the [Memento Time Travel service](http://timetravel.mementoweb.org/).


See [example.html](http://digitopia.nl/robustify/example.html) for examples of how to use robustify.js.

robustify.js should work on any modern browser or IE 8 or better.<commit_msg>added info about dependence  on statuscode.php<commit_after># robustify.js

robustify.js is a javascript that attempts to fight [link rot](https://en.wikipedia.org/wiki/Link_rot) or content drift with an implementation of <NAME>'s [Memento Robust Links - Link Decoration](http://robustlinks.mementoweb.org/spec/) specification, in context of the [Hiberlink](http://hiberlink.org/) project.

robustify.js will make any clicked hyperlink test if the linked page is available online. If it is not, it will redirect the user to a web archive, by default using the [Memento Time Travel service](http://timetravel.mementoweb.org/).


See [example.html](http://digitopia.nl/robustify/example.html) for examples of how to use robustify.js. Mind that robustify.js needs to call a server side script to check link availability. As a default it uses the service at http://digitopia.nl/services/statuscode.php but statuscode.php is part of this package so it can be run from your server.

robustify.js should work on any modern browser or IE 8 or better.
{'fraction_non_alphanumeric': 0.0867178924259056, 'fraction_numerical': 0.0010976948408342481, 'mean_word_length': 4.643962848297214, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3241851', 'n_tokens_mistral': 528, 'n_tokens_neox': 509, 'n_words': 221}