Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function chunkArray(_0x57c9x2, _0x57c9x3) {
  2.     var _0x57c9x4 = 0;
  3.     var _0x57c9x5 = _0x57c9x2.length;
  4.     var _0x57c9x6 = [];
  5.     for (_0x57c9x4 = 0; _0x57c9x4 < _0x57c9x5; _0x57c9x4 += _0x57c9x3) {
  6.         myChunk = _0x57c9x2.slice(_0x57c9x4, _0x57c9x4 + _0x57c9x3);
  7.         _0x57c9x6.push(myChunk)
  8.     };
  9.     return _0x57c9x6
  10. }
  11. function getInfo(_0x57c9x8, _0x57c9x9) {
  12.     $.ajax({
  13.         type: "POST",
  14.         url: "https://uid.nguyenhainam.net/api/index.php",
  15.         dataType: "json",
  16.         data: {
  17.             list: _0x57c9x8[0],
  18.             access_token: _0x57c9x9
  19.         },
  20.         success: function (_0x57c9xa) {
  21.             if (_0x57c9xa.hasOwnProperty("status")) {
  22.                 if (_0x57c9xa.status === true) {
  23.                     $kq = _0x57c9xa.data;
  24.                     $("textarea[name=\"result2\"]").val($("textarea[name=\"result2\"]").val() + $kq.mes)
  25.                 } else {
  26.                     $kq = _0x57c9xa.data
  27.                 }
  28.             }
  29.         },
  30.         error: function (_0x57c9xb, _0x57c9xc, _0x57c9xd) {}
  31.     })
  32. }
  33. $(".btn_info").click(function () {
  34.     if (window.location.hostname != "facebook.fsale.vn") {
  35.         return
  36.     };
  37.     $("span.allphone").html(0);
  38.     $("span.allnophone").html(0);
  39.     $(this).attr("disabled", true);
  40.     var _0x57c9x9 = "";
  41.     var _0x57c9xe = $("textarea[name=\"result\"]").val().split(/\n/);
  42.     var _0x57c9xf = _0x57c9xe.length;
  43.     if (_0x57c9xf > 500) {
  44.         $("#cmess").show();
  45.         $("span#cmes2").text("(Max 500) Liên hệ Fsale nếu cần sử dụng nhiều ");
  46.         return
  47.     };
  48.     var _0x57c9x10 = Array.from(_0x57c9xe.reduce((_0x57c9x12, _0x57c9x13) => _0x57c9x12.set(_0x57c9x13.trim(), _0x57c9x13.trim()), new Map())).map((_0x57c9x11) => _0x57c9x11[1]);
  49.     _0x57c9x10 = chunkArray(_0x57c9x10, 100);
  50.     getInfo(_0x57c9x10, _0x57c9x9)
  51. });
  52. function getInfo3(_0x57c9x8, _0x57c9x9) {
  53.     $.ajax({
  54.         type: "POST",
  55.         url: "https://uid.nguyenhainam.net/api/phonetouid.php",
  56.         dataType: "json",
  57.         data: {
  58.             list: _0x57c9x8[0],
  59.             access_token: _0x57c9x9
  60.         },
  61.         success: function (_0x57c9xa) {
  62.             if (_0x57c9xa.hasOwnProperty("status")) {
  63.                 c = _0x57c9x8.toString();
  64.                 c = c.substr(0, 1);
  65.                 if (c != 0) {
  66.                     $("#dmess").show();
  67.                     $("span#dmes2").text("Số điện thoại phải bắt đầu từ 0");
  68.                     return
  69.                 };
  70.                 if (_0x57c9xa.status === true) {
  71.                     $kq = _0x57c9xa.data;
  72.                     $re = $kq.mes;
  73.                     $re = $re.replace("\t\t\t", "");
  74.                     $re = $re.replace("\t\t", "");
  75.                     li = _0x57c9x8.toString();
  76.                     li = li.replace("0", "");
  77.                     $re = $re.replace("84" + li, "");
  78.                     $re = $re.replace("\t", "");
  79.                     if ($re.length < 1) {} else {
  80.                         $("input[name=\"duyduy22\"]").val($("input[name=\"duyduy22\"]").val() + $re);
  81.                         $("#dmess").show();
  82.                         $("span#dmes2").text("Chuyển thành công SDT sang UID")
  83.                     }
  84.                 } else {
  85.                     $kq = _0x57c9xa.data;
  86.                     $("#dmess").show();
  87.                     $("span#dmes2").text("Không tìm được UID")
  88.                 }
  89.             }
  90.         },
  91.         error: function (_0x57c9xb, _0x57c9xc, _0x57c9xd) {}
  92.     })
  93. }
  94. $(".btn_info3").click(function () {
  95.     if (window.location.hostname != "facebook.fsale.vn") {
  96.         return
  97.     };
  98.     $("input[name=\"duyduy22\"]").val("");
  99.     $(this).attr("disabled", true);
  100.     var _0x57c9x9 = "";
  101.     var _0x57c9xe = $("input[name=\"duyduy2\"]").val();
  102.     _0x57c9xe = _0x57c9xe;
  103.     var _0x57c9x15 = new Array();
  104.     _0x57c9x15.push(_0x57c9xe);
  105.     console.log(_0x57c9x15);
  106.     var _0x57c9x10 = chunkArray(_0x57c9x15, 100);
  107.     getInfo3(_0x57c9x10, _0x57c9x9)
  108. });
  109. function getInfo2(_0x57c9x8, _0x57c9x9) {
  110.     $.ajax({
  111.         type: "POST",
  112.         url: "https://uid.nguyenhainam.net/api/index.php",
  113.         dataType: "json",
  114.         data: {
  115.             list: _0x57c9x8[0],
  116.             access_token: _0x57c9x9
  117.         },
  118.         success: function (_0x57c9xa) {
  119.             if (_0x57c9xa.hasOwnProperty("status")) {
  120.                 if (_0x57c9xa.status === true) {
  121.                     $kq = _0x57c9xa.data;
  122.                     $re = $kq.mes;
  123.                     $re = $re.replace(_0x57c9x8, "");
  124.                     $re = $re.replace("\t\t\t", "");
  125.                     $re = $re.replace("\t\t", "");
  126.                     if ($re.length < 1) {} else {
  127.                         $("input[name=\"duyduy22\"]").val($("input[name=\"duyduy22\"]").val() + $re);
  128.                         $("#dmess").show();
  129.                         $("span#dmes2").text("Chuyển thành công UID - SDT")
  130.                     }
  131.                 } else {
  132.                     $kq = _0x57c9xa.data;
  133.                     $("#dmess").show();
  134.                     $("span#dmes2").text("Không tìm được SDT")
  135.                 }
  136.             }
  137.         },
  138.         error: function (_0x57c9xb, _0x57c9xc, _0x57c9xd) {}
  139.     })
  140. }
  141. $(".btn_info2").click(function () {
  142.     if (window.location.hostname != "facebook.fsale.vn") {
  143.         return
  144.     };
  145.     $("input[name=\"duyduy22\"]").val("");
  146.     $(this).attr("disabled", true);
  147.     var _0x57c9x9 = "";
  148.     var _0x57c9xe = $("input[name=\"duyduy2\"]").val();
  149.     if (isNaN(_0x57c9xe)) {
  150.         var _0x57c9x17 = _0x57c9xe.trim();
  151.         $.post("https://uid.nguyenhainam.net/duy.php", {
  152.             url: _0x57c9x17
  153.         }, function (_0x57c9x18) {
  154.             if (_0x57c9x18.hasOwnProperty("status")) {
  155.                 if (_0x57c9x18.status == true) {
  156.                     _0x57c9xe = _0x57c9x18.id;
  157.                     $("input[name=\"duyduy2\"]").val(_0x57c9xe);
  158.                     $("#dmess").show();
  159.                     $("span#dmes2").text("Chuyển thành công URL - SDT");
  160.                     var _0x57c9x15 = new Array();
  161.                     _0x57c9x15.push(_0x57c9xe);
  162.                     console.log(_0x57c9x15);
  163.                     var _0x57c9x10 = chunkArray(_0x57c9x15, 100);
  164.                     getInfo2(_0x57c9x10, _0x57c9x9)
  165.                 } else {
  166.                     $("#dmess").show();
  167.                     $("span#dmes2").text("Không lấy được UID")
  168.                 }
  169.             };
  170.             return _0x57c9x18.id
  171.         }, "json")
  172.     } else {
  173.         _0x57c9xe = _0x57c9xe;
  174.         var _0x57c9x15 = new Array();
  175.         _0x57c9x15.push(_0x57c9xe);
  176.         console.log(_0x57c9x15);
  177.         var _0x57c9x10 = chunkArray(_0x57c9x15, 100);
  178.         getInfo2(_0x57c9x10, _0x57c9x9)
  179.     }
  180. });
  181. $("#chuyen").click(function () {
  182.     $("#duy1").hide();
  183.     $("#duy2").show()
  184. });
  185. $(".duy88").click(function () {})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement