Set visited link color to whatever the color of un-visited link is (P.S. not the usual question)

前端 未结 10 1763
执念已碎
执念已碎 2021-02-03 16:59

I need to set the a:visited CSS to whatever color the normal a is set to.

What I want to be able to tell the browser is, for the visited links, use the same

10条回答
  •  孤城傲影
    2021-02-03 17:49

    I required a solution to do as the title of this question suggests "Set visited link color to whatever the color of un-visited link is". For me I needed a way to perform an image comparison of browser page content screen grabs that I use for regression testing (pdiff - perceptual diff). Here is the code that worked for me.

    (function(){
      var links = document.querySelectorAll('a');
      for (var i=0; i

提交回复
热议问题