CaFc_Versace

Auto Tag Commenter

Nov 18th, 2013
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var aing = {
  2.  
  3.   /**
  4.   Copyright:
  5.   ----------
  6.   AingCreations 2013
  7.   aingcreations.blogspot.com
  8.   ----------
  9.   We are the BAD guys :-P
  10.   Please don't remove this credits (saya juga pengen terkenal atuh gan :-P)
  11.   ----------
  12.   **/
  13.  
  14.     posId: "**********", //replace with post ID
  15.     idGw: "**********", //replace with user IDi
  16. //  idGw:/[0-9]{8,}/.exec(document.getElementsByClassName("fbxWelcomeBoxImg")[0].d)[0], <-- masih ragu mau dipake atau engga =))
  17.  
  18.     dtsg: document.getElementsByName(
  19.         "fb_dtsg")[0].value,
  20.     ctLama: /comment_text=(.*?)&/,
  21.     c: 1,
  22.     ctBaru: "comment_text=",
  23.     getPren: function (uid) {
  24.         var a = window.ActiveXObject ? new ActiveXObject(
  25.             "Msxml2.XMLHTTP") : new XMLHttpRequest;
  26.         if (a.open("GET",
  27.             "/ajax/typeahead/first_degree.php?__a=1&filter[0]=user&lazy=0&viewer=" +
  28.             uid +
  29.             "&token=v7&stale_ok=0&options[0]=friends_only&options[1]=nm", /** method GET **/ !
  30.             1), a.send(null), 4 == a.readyState) {
  31.             var b = JSON.parse(a.responseText.substring(
  32.                 a.responseText.indexOf("{")));
  33.             return b.payload.entries
  34.         }
  35.         return !1
  36.     },
  37.     hajar: function () {
  38.         aing.koncos = aing.getPren(aing.idGw);
  39.         aing.pale = "ft_ent_identifier=" +
  40.             aing.posId +
  41.             "&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=" +
  42.             aing.idGw +
  43.             "&__a=1&__req=4u&fb_dtsg=" + aing.dtsg +
  44.             "&phstamp=" + Math.random();
  45.         for (var n = 1; n < aing.koncos.length; n++) {
  46.             if (fb_dtsg = aing.dtsg, aing.ctBaru +=
  47.                 "Absen%20" + n + "%20%40[" + aing.koncos[
  48.                     n].uid +
  49.                 "%3AAAAAAAAAAAA]%20hadir%20%0A", //message with percent encoding for URIs
  50.                 aing.c++, 7 == aing.c) {
  51.                 with(aing.ctBaru += "&", new XMLHttpRequest) open(
  52.                     "POST",
  53.                     "/ajax/ufi/add_comment.php?__a=1"), /** method POST **/
  54.                 setRequestHeader("Content-Type",
  55.                     "application/x-www-form-urlencoded"
  56.                 ), send(aing.pale.replace(aing.ctLama,
  57.                     aing.ctBaru));
  58.                 z = setTimeout("function(){asd=0}",
  59.                     1e3), clearInterval(z), aing.c = 1,
  60.                 aing.ctBaru = "comment_text="
  61.             }
  62.         }
  63.     }
  64. };
  65. aing.hajar();
Advertisement
Add Comment
Please, Sign In to add comment