Skip to content

Instantly share code, notes, and snippets.

@fangel
Created June 8, 2009 08:36
Show Gist options
  • Save fangel/125711 to your computer and use it in GitHub Desktop.
Save fangel/125711 to your computer and use it in GitHub Desktop.
window.onload=function(no){var oo=window.onload;return function(){if(typeof oo=='function'){oo();}no();}}(function(ifAO){return function(){var im=document.getElementsByTagName('img');for(var i=0;i<im.length;i++){if(im[i].src&&im[i].src.match(/aoimages\.s3/)){return ifAO();}}}}(function() {
// Enter whatever JS you want run when AidOnline is detected..
alert('You have AidOnline - go away please!');
// End of your own JS..
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment