View difference between Paste ID: TTKvRw8R and NQGw6vyV
SHOW: | | - or go back to the newest paste.
1-
(function(){
1+
(function(){
2-
  links=document.getElementsByTagName('a');
2+
  links=document.getElementsByTagName('a');
3-
  open_link=(function(link){
3+
  open_link=(function(link){
4-
     if(!(link.href.indexOf('levelup.php')<0)){
4+
     if(!((link.href||'DURP').indexOf('levelup.php')<0)){
5-
       aj=new XMLHttpRequest();
5+
       aj=new XMLHttpRequest();
6-
       aj.open('GET',link.href);
6+
       aj.open('GET',link.href);
7-
       aj.onreadystatechange=(function(){
7+
       aj.onreadystatechange=(function(){
8-
         if(aj.readyState==4 && aj.status==200)
8+
         if(aj.readyState==4)
9-
           console.log("Finished requesting",link.href);
9+
           console.log("Finished requesting",link.href);
10-
       });
10+
       });
11-
       aj.send();
11+
       aj.send();
12-
       return true;
12+
       return true;
13-
    }
13+
    }
14-
    return false;
14+
    return false;
15-
  });
15+
  });
16-
  for(i in links)
16+
  for(i in links)
17-
    open_link(links[i]);
17+
    open_link(links[i]);
18
})();