Advertisement
Guest User

Untitled

a guest
Jan 8th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. var output="";var order=document.body.innerHTML.match(/Order #([0-9R]+)/);order=order?order[1]:"Order_Time: "+Date.now();var orderDate=document.body.innerHTML.match(/ORDER DATE ([0-9\/]+)/);orderDate=orderDate?orderDate[1]:"Order_Time: "+Date.now();var serials=document.body.innerHTML.match(/serial number:[\s\S]*?\d{19}/gi);for(var i=0;i<serials.length;i++){var card=serials[i].match(/\d{19}/)[0];var re=new RegExp(card+"[\\s\\S]*?(\\d{4})");var pin=document.body.innerHTML.match(re);re=new RegExp("Card Value:[\\s\\S]*?(\\$[0-9.,]+)[\\s\\S]*?"+card);var value=document.body.innerHTML.match(re);if(pin&&value){output+=orderDate+"\t"+order+"\t"+value[1]+"\t"+card+"\t"+pin[1]+"\t"+value[1]+"\n"}}var t=document.createElement("textarea");document.body.appendChild(t);t.value=output;t.select();document.execCommand("Copy");document.body.removeChild(t);var s=document.createElement("span");funnies=["Hail Hypnotoad","Coffee is Good","Bumfuzzle","Penis","FART!"];s.innerHTML=Math.random()<.95?"Copied":funnies[Math.floor(Math.random()*(funnies.length-1))];s.setAttribute("style","border: 1vh solid #000;width:20vw;height:10vh;position:fixed;top:40vh;left:40vw;background-color:green;z-index:5;border-radius:1vh;font-size:"+Math.round(18/s.innerHTML.length*100)/100+"vw;text-align:center;line-height:10vh;");setTimeout(function(){document.body.removeChild(s)},100);document.body.appendChild(s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement