Created
December 20, 2011 18:53
-
-
Save thejefflarson/1502737 to your computer and use it in GitHub Desktop.
For andy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[].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