Skip to content

Instantly share code, notes, and snippets.

@padolsey
Created December 1, 2009 13:33
Show Gist options
  • Select an option

  • Save padolsey/246281 to your computer and use it in GitHub Desktop.

Select an option

Save padolsey/246281 to your computer and use it in GitHub Desktop.
new SiteTraverser({
limit: 100,
check: function(source){
return /<title>/.test(source) ?
new SiteTraverser.Success("Title Found!") : new SiteTraverser.Failure("No Title!");
},
httpError: function(xhr){
return new SiteTraverser.Failure("Request failed.", 'Error code: ' + xhr.status);
}
}).go();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment