Skip to content

Instantly share code, notes, and snippets.

@mexitek
Created May 12, 2011 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mexitek/969435 to your computer and use it in GitHub Desktop.
Save mexitek/969435 to your computer and use it in GitHub Desktop.
Made this hack to display the failed attempt at securing a JS service
<!-- // Include their JS service -->
<script src="http://www.websnapr.com/js/websnapr.js"></script>
<script>
// Use this function instead of wsr_snapshot()
function wsr_snapshot2(url,key,size,link){
link=typeof(link)!='undefined'?link:1;
if(size==''||size==undefined){size='s'};
var src="http://images.websnapr.com/?size="+(size.toLowerCase()=='t' || '' ?'t':'s')+
"&key="+encodeURIComponent(key)+
"&hash="+encodeURIComponent(websnapr_hash)+
"&url="+encodeURIComponent(url);
document.write('<div style="overflow:hidden;height:142px;"><img src="'+src+'" border="0" /></div>');
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment