The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Robust Links – Make Your Link Robust: automagically amend them with archived versions

Posted by jpluimers on 2025/06/26

Need to look into this further: [Wayback/Archive] Robust Links – Make Your Link Robust.

Likely running it on my blog requires JavaScript to be enabled which means going from the premium to the small business plan (at te time of writing from USD 8 to USD 25 per month: a 200+% increase).

Let’s first start with an example:

From [Wayback/Archive] Jeroen Wiert Pluimers @wiert@mastodon.social on Twitter: “This is cool! RobustLinks by @Mementoweb finds a URL with caption in @waybackmachine or @archiveis, then gives back amended a elements with both original and versioned plus style that renders based on the JavaScript plus CSS (& allows to navigate to original or versioned).”

  • URL=https://robustlinks.mementoweb.org/
  • Text= Robustify your links!

Submitting gives [Wayback/Archive] robustlinks.mementoweb.org/robustify/?anchor_text=%20Robustify%20your%20links!&url=https%3A%2F%2Frobustlinks.mementoweb.org%2F with these bits of code as result:

  1. <a href="https://robustlinks.mementoweb.org/"
    data-versionurl="https://archive.ph/wip/LTc5P"
    data-versiondate="2022-11-27"> Robustify your links!</ax
  2. <a href="https://archive.ph/wip/LTc5P"
    data-originalurl="https://robustlinks.mementoweb.org/"
    data-versiondate="2022-11-27"> Robustify your links!</a>
  3. <!-- RobustLinks CSS -->
    <link rel="stylesheet" type="text/css" href="https://doi.org/10.25776/z58z-r575" />
    <!-- RobustLinks Javascript -->
    https://doi.org/10.25776/h1fa-7a28

The first defaults to the original URL (using href) and also has the archived URL (in data-versionurl).

The second defaults to the archived URL (using href) and also has the original (in data-originalurl).

Both have data-versiondate (which contains the date I wrote this blog post).

The third has the HTML code for loading the CSS and JavaScript code that you can include in the page (preferably in the head): combined they will render the anchors so you can access both the original and saved content.

You can find their source code in the repository [Wayback/Archive] iipc/robustlinks: Links on the web break all the time, robustify them!:

Note that the JavaScript, when the [Wayback/Archive] Window: DOMContentLoaded event fired will rewrite all [Wayback/Archive] <a>: The Anchor element instances.

Documentation is spread over a few pages. I suggest starting at the first, then working your way down the list:

  1. [Wayback/Archive] Robust Links Tools
  2. [Wayback/Archive] Robustifying Links (with specifications)
  3. [Wayback/Archive] Robust Links – Make Your Link Robust (describing their API)
  4. [Wayback/Archive] The Code4Lib Journal – Robustifying Links To Combat Reference Rot
  5. [Wayback/Archive] Robustify your links! A working solution to create persistently robust links

External tools that can help you with archiving are these:

Other organisations active on GitHub:

Via:

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.