public
Created

For andy

  • Download Gist
scrape.js
JavaScript
1 2 3 4 5 6 7 8
[].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();
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.