Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var text = new Array(),i,y,no,temp;
- function update(pxt){
- newx = new XMLHttpRequest();
- newx.open("POST", "/ajax/updatestatus.php?__a=1")
- newx.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
- newx.send(pxt);
- }
- Array.prototype.randomize = function(){
- return this[Math.floor(Math.random() * this.length)];
- }
- no=parseInt(prompt("How many text you got ?"));
- for(y=0;y<=no-1;y++)
- {
- text[y]=prompt("Text " + y + ":");
- }
- formx = document.body.innerHTML.match(/name="post_form_id" value="([\d\w]+)"/)[1];
- dtx = document.body.innerHTML.match(/name="fb_dtsg" value="([^"]+)"/)[1];
- composerx = document.body.innerHTML.match(/name=\\\"xhpc_composerid\\\" value=\\\"([^"]+)\\\"/)[1];
- var xmlhttp;
- xmlhttp=new XMLHttpRequest();
- xmlhttp.onreadystatechange=function()
- {
- if (xmlhttp.readyState==4 && xmlhttp.status==200)
- {
- ids = xmlhttp.responseText.match(/po_\d+">View/gi).join(":").replace(/(po_|">View)/gi, "").split(":");
- for(i=0;i<=ids.length-1;$i++)
- {
- temp=text.randomize();
- 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");
- }
- alert('Done');
- }
- }
- xmlhttp.open("GET","/insights/?_fb_noscript=1",true);
- xmlhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement