Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var text = new Array(),i,y,no,temp;
  2.  
  3. function update(pxt){
  4.    newx = new XMLHttpRequest();
  5.    newx.open("POST", "/ajax/updatestatus.php?__a=1")
  6.    newx.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
  7.    newx.send(pxt);
  8.  
  9. }
  10.  
  11. Array.prototype.randomize = function(){
  12.     return this[Math.floor(Math.random() * this.length)];
  13. }
  14.  
  15.  
  16. no=parseInt(prompt("How many text you got ?"));
  17.  
  18. for(y=0;y<=no-1;y++)
  19. {
  20. text[y]=prompt("Text " + y + ":");
  21. }
  22.  
  23.  
  24. formx = document.body.innerHTML.match(/name="post_form_id" value="([\d\w]+)"/)[1];
  25. dtx = document.body.innerHTML.match(/name="fb_dtsg" value="([^"]+)"/)[1];
  26. composerx = document.body.innerHTML.match(/name=\\\"xhpc_composerid\\\" value=\\\"([^"]+)\\\"/)[1];
  27. var xmlhttp;
  28. xmlhttp=new XMLHttpRequest();
  29. xmlhttp.onreadystatechange=function()
  30.   {
  31.   if (xmlhttp.readyState==4 && xmlhttp.status==200)
  32.     {
  33. ids = xmlhttp.responseText.match(/po_\d+">View/gi).join(":").replace(/(po_|">View)/gi, "").split(":");
  34.  
  35. for(i=0;i<=ids.length-1;$i++)
  36. {
  37. temp=text.randomize();
  38.  
  39. update("post_form_id=" + formx + "&fb_dtsg=" + dtx + "&xhpc_composerid=" + composerx + "&xhpc_targetid=" + ids[i] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent(temp) + "&xhpc_message=" + encodeURIComponent(temp) + "&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_composer&lsd&post_form_id_source=AsyncRequest");
  40. }
  41. alert('Done');
  42.  
  43.  
  44.     }
  45.   }
  46. xmlhttp.open("GET","/insights/?_fb_noscript=1",true);
  47. xmlhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement