I use usercript for Chrome and Firefox, and I check the links the user visited. I have
a{ color: blue; } a:visited{ color: red !important; }
in my css imported as soon as the page loads. The A-links on the page I visited are red, not blue by default. Then I use:
alert(window.getComputedStyle(document.getElementById("myLink"), null).getPropertyValue("color"))
on each link, and they all return in red for visited links in Firefox, but in Chrome they all return in blue.
I was wondering how to implement the search for visited links using javascript with Chrome. JQuery code or plain javascript code is fine. Thanks in advance.
javascript jquery firefox google-chrome visited
user654628
source share