Search code examples
cssfirefoxgoogle-chromehyperlinkuserscripts

How do i check if a link has been visited?


I am writing a userscript for myself and i have a list of permalinks and i'd like to hide the ones i already visited. I was thinking i can use jquery and check if the link has been visited (default color=purple) and if so hide the element.

However... i cant figure out how to actually check this. .attr('style'); only gets me border: none while .css() is invalid.

How might i check if the link has been clicked on? I am testing on firefox 4.0.1 with greasemonkey but i'll be using it on chrome.


Solution

  • The color checking shouldn't work anymore. Since this security flaw is fixed.