Skip to content

Instantly share code, notes, and snippets.

@thejefflarson
Created December 20, 2011 18:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejefflarson/1502737 to your computer and use it in GitHub Desktop.
Save thejefflarson/1502737 to your computer and use it in GitHub Desktop.
For andy
[].slice.call(document.getElementsByTagName('a')).forEach(function(e){
var x = new XMLHttpRequest();
x.open("HEAD", e.href, true);
x.onreadystatechange = function(){
if(x.status === 200) e.style.setProperty('background-color', 'papayaWhip');
};
x.send();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment