# Using the :visited Selector to Show Unread Blog Posts

DevFeed: [Using the :visited Selector to Show Unread Blog Posts](<https://devfeed.tech/articles/hacking-visited-28799.md>)

Original publisher: [Read original article](<https://una.im/hacking-visited/>)

Published: 2015-06-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Una Kravets](<https://devfeed.tech/sources/una-kravets.md>)

Topics: [browser](<https://devfeed.tech/topics/browser.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [change](<https://devfeed.tech/tags/change.md>), [color](<https://devfeed.tech/tags/color.md>), [javascript](<https://devfeed.tech/tags/javascript.md>)

## AI overview

This tutorial explores using the CSS :visited pseudo-class to indicate which blog posts have been read. It explains browser privacy restrictions on styling visited links and describes attempted JavaScript and pseudo-element workarounds.

## Source excerpt

Hacking the :visited selector to show unread posts. We'll look at the limitations and my little work-around.