[JavaScript] Auto Tag Commenter Facebook
Auto Tag Commenter © 2013 - 2014 AingCreations
  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 ID
  16. //      idGw:/[0-9]{8,}/.exec(document.getElementsByClassName("fbxWelcomeBoxImg")[0].d)[0],
  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&" +
  42.             "source=1&" +
  43.             "client_id=1359576694192%3A1233576093&" +
  44.             "reply_fbid" +
  45.             "&parent_comment_id&" +
  46.             "rootid=u_jsonp_3_19&" +
  47.             "ft[tn]=[]&" +
  48.             "ft[qid]=5839337351464612379&" +
  49.             "ft[mf_story_key]=5470779710560437153&" +
  50.             "ft[has_expanded_ufi]=1&nctr[_mod]=pagelet_home_stream&__user=" +
  51.                         aing.idGw +
  52.                         "&__a=1&__req=4u&fb_dtsg=" + aing.dtsg +
  53.                         "&phstamp=" + Math.random();
  54.                 for (var n = 1; n < aing.koncos.length; n++) {
  55.                         if (fb_dtsg = aing.dtsg, aing.ctBaru +=
  56.                                 "Absen%20" + n + "%20%40[" + aing.koncos[
  57.                                         n].uid +
  58.                                 "%3AAAAAAAAAAAA]%20hadir%20%0A", //message with percent encoding for URIs
  59.                                 aing.c++, 7 == aing.c) {
  60.                                 with(aing.ctBaru += "&", new XMLHttpRequest) open(
  61.                                         "POST",
  62.                                         "/ajax/ufi/add_comment.php?__a=1"), /** method POST **/
  63.                                 setRequestHeader("Content-Type",
  64.                                         "application/x-www-form-urlencoded"
  65.                                 ), send(aing.pale.replace(aing.ctLama,
  66.                                         aing.ctBaru));
  67.                                 z = setTimeout("function(){asd=0}",
  68.                                         1e3), clearInterval(z), aing.c = 1,
  69.                                 aing.ctBaru = "comment_text="
  70.                         }
  71.                 }
  72.         }
  73. };
  74. aing.hajar();
Parsed in 0.007 seconds at 331.74 KB/s