title: Detect Visited Link In Chrome
body: <p>I am using a userscript for Chrome and Firefox and I am checking for links that have been visited by the user. I have </p>
  
  <pre><code>a{
     color: blue;
  }
  
  a:visited{
     color: red !important;
  }
  </code></pre>
  
  <p>in my css imported as soon as the page loads. The a-links on the page that I have visited are colored red instead of default of blue. I then use:</p>
  
  <pre><code>alert(window.getComputedStyle(document.getElementById("myLink"), null).getPropertyValue("color"))
  </code></pre>
  
  <p>on each link and they all return red for the visited links in Firefox but in Chrome they all return blue. </p>
  
  <p>I was wondering how to implement finding visited links using javascript with Chrome. Jquery code or normal javascript code is fine. Thanks in advance.</p>