Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:
- var nukeCoords='232|533 288|871 232|826 268|848 278|842';
- var uniqueCookie='pod';
- function getCookie(c_name){
- var i,x,y,ARRcookies=document.cookie.split(";");
- for (i=0;i<ARRcookies.length;i++){
- x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
- y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
- x=x.replace(/^\s+|\s+$/g,"");
- if (x==c_name){
- return unescape(y);
- }
- }
- }
- d=getCookie(uniqueCookie);
- s="";
- if(d){
- ns=d.split(",");
- cs=nukeCoords.split(" ");
- for(i=0;i<cs.length;i++){
- s+=cs[i]+" : "+ns[i]+"\n";
- }
- alert(s);
- if(confirm("Delete cookie?")){
- var exdate=new Date();
- exdate.setDate(exdate.getDate())-1;
- var c_value=exdate.toUTCString();
- fff=uniqueCookie + "=dd; expires=" + c_value;
- document.cookie=fff;
- alert("Deleted");
- }
- }else{
- alert("No cookie found");
- }
- void(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement