Getting around the restricted styling of visited links with javascript and local storage.

Utilizing local storage and javascript to get around the styling restrictions on :visited links and their content


CSS on Lockdown

The Problem: CSS for :visited links is restricted to a few select properties for security reasons. Is there a way to style these properties without introducing complex state-management to a vanilla javascript app?

TLDR: Utilize HTML local storage to store visited links in an array, and apply a javascript class accordingly to give it the desired CSS. Read More Here.