The idea that you can track which links users have visited re-emerged earlier this month.

In my (rather drawn out) blog redesign process, I considered that when showing a list of link, I could hide those ones my visitor had already been to.

Here's a jQuery plugin to filter for just visited links:



I've published 38 videos for new developers, designers, UX, UI, product owners and anyone who needs to conquer the command line today.

The plugin is written to filter to the visited links, and does so by plugging in an iframe and inserting all the links of interest and filtering through until it finds all the visited links.

The plugin also allows you to drop in a function to easily run against each visited link.


$('#sidebar a').visited().addClass('visited');


$('#sidebar li > a').visited(function () {
  // hides the li element


I've quickly included a working demo that shows a list of links, and hides the ones that you've already visited. If you click on 'show visited links' it will run the filter and show the correct links.

Note that in the demo, I've used a more complicated selector than above because I don't want to match the 'show'.

See the demo making use of the visited plugin

...and yes, that is the re-design I've been working on. It's pretty plain, but purposefully as my blog focuses so much on code.