Create a gist now

Instantly share code, notes, and snippets.

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