Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:
  2. var nukeCoords='232|533 288|871 232|826 268|848 278|842';
  3. var uniqueCookie='pod';
  4. function getCookie(c_name){
  5.     var i,x,y,ARRcookies=document.cookie.split(";");
  6.     for (i=0;i<ARRcookies.length;i++){
  7.         x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  8.         y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  9.         x=x.replace(/^\s+|\s+$/g,"");
  10.         if (x==c_name){
  11.             return unescape(y);
  12.         }
  13.     }
  14. }
  15. d=getCookie(uniqueCookie);
  16. s="";
  17. if(d){
  18.     ns=d.split(",");
  19.     cs=nukeCoords.split(" ");
  20.     for(i=0;i<cs.length;i++){
  21.         s+=cs[i]+" : "+ns[i]+"\n";
  22.     }
  23.     alert(s);
  24.     if(confirm("Delete cookie?")){
  25.         var exdate=new Date();
  26.         exdate.setDate(exdate.getDate())-1;
  27.         var c_value=exdate.toUTCString();
  28.         fff=uniqueCookie + "=dd; expires=" + c_value;
  29.         document.cookie=fff;
  30.         alert("Deleted");
  31.     }
  32. }else{
  33.     alert("No cookie found");
  34. }
  35. void(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement