I cannot give enough thanks for the Internet Archive WayBack Machine. I should give money, but instead I offer a blog post.

And that’s a thing when I am looking to use or refer to an old post here- more often than not, many to most if not all the links are broken. Some days I just shrug, but others I modify the dead links with ones to their remnants in the Wayback machine.

A few browser extensions come in handy.

I was doing this cleanup to a post from 2003 (older than dust) and was thinking it would be nice to have a indicator that the link from my site was to the WayBack Machine.

On some past projects I have used some CSS to add an icon to links that point to a pdf, this is possible with selectors available for choosing links based on the href= attribute — see https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors

I made a quick icon based on the avatar for the Internet Archive twitter account (inverting the colors) that for quick and dirty purposes I stuffed in a directory on my site. This is the CSS I added (after a bit of fiddling on the href selector) to my theme (this could be tossed into any WordPress site via the Customizer:

a[href*="web.archive.org/web"] {
    padding: 0px 0 0px 22px;
    background: transparent url(https://cogdogblog.com/images/social/archive.png) 
      no-repeat center left;
}

My image is 20px by 20px, so what it does is add padding on the left to allow for the image to be displayed. The [href*="web.archive.org/web"] selector will apply this to any hypertext links to a Wayback Machine url.

This was the old post you can see it in action on (I also end up adding featured images when I dig into past posts… because I can)

Or here it is on the oldest Wayback machine archive for my first blog post.

Keeping the old blog going, yeah it’s work. But it’s good work.


Featured Image: Found at Hypertopic Text Analysis FAQ on Github, rights status unknown. I will ask.

A hand holds a yellow highlighter pen over a document with pink and green highlights (these pens can be seen on the side)
Profile Picture for CogDog The Blog
An early 90s builder of web stuff and blogging Alan Levine barks at CogDogBlog.com on web storytelling (#ds106 #4life), photography, bending WordPress, and serendipity in the infinite internet river. He thinks it's weird to write about himself in the third person. And he is 100% into the Fediverse (or tells himself so) Tooting as @cogdog@cosocial.ca

Leave a Reply

Your email address will not be published. Required fields are marked *