Advertisement
Guest User

Decoded #2

a guest
Sep 17th, 2022
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function _0x16EF0() {
  2.     if (_0x16F5E === null) {
  3.         return
  4.     };
  5.     $('input[name=buscar]').focus()
  6. }
  7.  
  8. function _0x16F27(_0x16EF0) {
  9.     _0x16EF0 = _0x16EF0.replace(/^\s+|\s+$/g, '');
  10.     _0x16EF0 = _0x16EF0.toLowerCase();
  11.     var _0x16F27 = 0;
  12.     for (; 28 > _0x16F27; _0x16F27++) {
  13.         if (!_0x16FCC) {
  14.             _0x16F5E();
  15.             return
  16.         };
  17.         _0x16EF0 = _0x16EF0.replace(new RegExp('àáäâèéëêìíïîòóöôùúüûñç·/_,:;' ['charAt'](_0x16F27), 'g'), 'aaaaeeeeiiiioooouuuunc------' ['charAt'](_0x16F27))
  18.     };
  19.     return _0x16EF0 = _0x16EF0.replace(/[^a-z0-9 -]/g, '').replace(/\s+/g, '-').replace(/-+/g, '-')
  20. }
  21.  
  22. function _0x16F5E(_0x16EF0) {
  23.     var _0x16F27 = $('.sugg');
  24.     if (_ajx) {
  25.         _ajx.abort()
  26.     };
  27.     _ajx = $.ajax({
  28.         url: '//suggestqueries.google.com/complete/search?client=firefox&ds=yt&q=' + _0x16EF0,
  29.         type: 'GET',
  30.         dataType: 'jsonp',
  31.         success: function (_0x16F5E) {
  32.             _0x16F5E = _0x16F5E[1];
  33.             var _0x16FCC = '';
  34.             var _0x17003 = new RegExp(_0x16EF0, 'g');
  35.             var _0x1703A = 0;
  36.             for (; _0x1703A < (10 < _0x16F5E.length ? 10 : _0x16F5E.length); _0x1703A++) {
  37.                 _0x16FCC = _0x16FCC + ('<li><a href="http://' + urlseo(_0x16F5E[_0x1703A]) + '.mp3xds.icu/">' + _0x16F5E[_0x1703A].replace(_0x17003, '<b>' + _0x16EF0 + '</b>') + '</a></li>')
  38.             };
  39.             if (_0x16FCC.length) {
  40.                 if (!_0x172CE) {
  41.                     _0x17071();
  42.                     return
  43.                 };
  44.                 _0x16F27.show().html(_0x16FCC)
  45.             } else {
  46.                 if (!_0x170DF) {
  47.                     _0x16F95 = null
  48.                 } else {
  49.                     _0x16F27.remove()
  50.                 }
  51.             }
  52.         }
  53.     })
  54. }
  55.  
  56. function _0x16F95(_0x16EF0, _0x16F5E) {
  57.     _ajx && _ajx.abort();
  58.     if (_0x16F27 == null) {
  59.         _0x172CE(null)
  60.     };
  61.     _ajx = $.post('ajax.php', _0x16EF0).done(function (_0x16EF0) {
  62.         'function' == typeof _0x16F5E && _0x16F5E(_0x16EF0)
  63.     })
  64. }
  65.  
  66. function _0x16FCC() {
  67.     return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
  68. }
  69.  
  70. function _0x17003(_0x16F5E) {
  71.     $('.playing  .player_link').addClass('act');
  72.     this.isPlay = 1;
  73.     if (_0x16F27 === false) {
  74.         _0x16EF0();
  75.         return
  76.     };
  77.     if ($('#player').length) {
  78.         if ($('.query').length) {
  79.             if (!_0x16EB9) {
  80.                 _0x17184()
  81.             };
  82.             this.tube.loadPlaylist({
  83.                 list: _0x16F5E,
  84.                 listType: 'search',
  85.                 index: 0,
  86.                 suggestedQuality: 100
  87.             })
  88.         } else {
  89.             this.tube.loadVideoById({
  90.                 videoId: _0x16F5E,
  91.                 suggestedQuality: 'small'
  92.             })
  93.         }
  94.     } else {
  95.         if (_0x16F27 === 0) {
  96.             _0x171BB = 'siguiente';
  97.             return
  98.         };
  99.         $('<iframe/>', {
  100.             id: 'player',
  101.             frameborder: 0,
  102.             allowfullscreen: 1,
  103.             allow: 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture',
  104.             title: 'YouTube video player',
  105.             src: 'https://www.youtube.com/embed/' + _0x16F5E + '?controls=1&autoplay=1&wmode=opaque&showinfo=0&rel=0&cc_load_policy=0&enablejsapi=1&iv_load_policy=3'
  106.         }).appendTo('body');
  107.         this.tube = new YT.Player('player', {
  108.             events: {
  109.                 onReady: this.onPlayerReady,
  110.                 onStateChange: this.onPlayerStateChange,
  111.                 suggestedQuality: 'small'
  112.             }
  113.         })
  114.     }
  115. }
  116.  
  117. function _0x1703A(_0x16EF0) {
  118.     _0x16EF0.target.playVideo();
  119.     Player.play()
  120. }
  121.  
  122. function _0x17071(_0x16EF0) {
  123.     if (0 == _0x16EF0.data) {
  124.         Player.siguiente()
  125.     } else {
  126.         if (!_0x16EB9) {
  127.             _0x17184();
  128.             return
  129.         };
  130.         if (3 == _0x16EF0.data || -1 == _0x16EF0.data) {
  131.             if (!_0x16EB9) {
  132.                 _0x17003 = true;
  133.                 return
  134.             } else {
  135.                 $('.playing .filebar').addClass('load')
  136.             };
  137.             $('.playing .a').addClass('spinner');
  138.             $('.playing p span.run').removeAttr('style').text('Cargando...');
  139.             if (_0x17260 === false) {
  140.                 return
  141.             };
  142.             if (-1 == _0x16EF0.data && $('.query').length) {
  143.                 Player.playing($('.lista_play'), $('.lista_play li').eq($('.playing').index()))
  144.             }
  145.         } else {
  146.             if (1 == _0x16EF0.data) {
  147.                 if (!_0x16EB9) {
  148.                     return
  149.                 };
  150.                 $('#ytply .yc .n').addClass('eq');
  151.                 $('.playing .player_link').addClass('act');
  152.                 $('.playing .a').find('.fa').removeClass('fa-play').addClass('fa-pause');
  153.                 $('.playing p span.run').removeAttr('style');
  154.                 $('.playing p span.tm').slideUp('fast');
  155.                 if (!_0x16F5E) {
  156.                     _0x17229(0);
  157.                     _0x17297 = 'text';
  158.                     return
  159.                 } else {
  160.                     $('.filebar').removeClass('load')
  161.                 };
  162.                 $('.playing .a').removeClass('spinner');
  163.                 Player.stop_time();
  164.                 Player.start_time(function () {
  165.                     if (!_0x16EB9) {
  166.                         return
  167.                     };
  168.                     Player.setCurrent()
  169.                 }, 1E3)
  170.             } else {
  171.                 if (!_0x16EB9) {
  172.                     _0x171F2(false);
  173.                     _0x17184 = 'setCurrent';
  174.                     return
  175.                 };
  176.                 if (2 == _0x16EF0.data) {
  177.                     $('#ytply .yc .n').removeClass('eq');
  178.                     $('.playing .player_link').removeClass('act');
  179.                     $('.playing .a').find('.fa').removeClass('fa-pause').addClass('fa-play');
  180.                     if (_0x17260 === 0) {
  181.                         _0x17116('addClass', 1, 0);
  182.                         return
  183.                     } else {
  184.                         $('.playing p span.tm').removeAttr('style')
  185.                     };
  186.                     $('.playing p span.run').slideUp('fast')
  187.                 }
  188.             }
  189.         }
  190.     }
  191. }
  192.  
  193. function _0x170A8() {
  194.     this.stop_time();
  195.     if (!_0x16EB9) {
  196.         _0x171F2(true, null, true, 'ajax');
  197.         _0x16EF0 = null;
  198.         return
  199.     };
  200.     this.start_time(function () {
  201.         Player.setCurrent()
  202.     }, 1E3);
  203.     this.tube.playVideo();
  204.     return this
  205. }
  206.  
  207. function _0x170DF() {
  208.     this.tube.pauseVideo();
  209.     this.stop_time();
  210.     return this
  211. }
  212. if (_0x171F2 == 1) {
  213.     _0x17229 = '.lista_play li.playing'
  214. };
  215.  
  216. function _0x17116() {
  217.     if (!_0x16EB9) {
  218.         _0x172CE = null;
  219.         return
  220.     };
  221.     if (!this.lista) {
  222.         return false
  223.     };
  224.     prev = this.lista.find('li.playing').prev();
  225.     if (_0x16F5E === 'getElementsByTagName') {
  226.         _0x16F95(false);
  227.         _0x16F95 = null;
  228.         return
  229.     };
  230.     if (0 == this.lista.find('li.playing').index()) {
  231.         prev = this.lista.find('li').eq(this.lista.find('li').length - 1)
  232.     };
  233.     this.playing(this.lista, prev)
  234. }
  235.  
  236. function _0x1714D() {
  237.     if (!this.lista) {
  238.         if (!_0x16FCC) {
  239.             _0x16FCC();
  240.             _0x16FCC = 'removeClass'
  241.         };
  242.         return false
  243.     };
  244.     next = this.lista.find('li.playing').next();
  245.     if (this.lista.find('li').length - 1 == this.lista.find('li.playing').index()) {
  246.         next = this.lista.find('li').eq(0)
  247.     };
  248.     if (_0x17260 === 1) {
  249.         return
  250.     };
  251.     this.playing(this.lista, next)
  252. }
  253.  
  254. function _0x17184(_0x16F27) {
  255.     var _0x16F5E = Math.floor(_0x16F27 / 3600);
  256.     var _0x16F95 = Math.floor((_0x16F27 - 3600 * _0x16F5E) / 60);
  257.     _0x16F27 = Math.floor(_0x16F27 - 3600 * _0x16F5E - 60 * _0x16F95);
  258.     if (10 > _0x16F95) {
  259.         if (!_0x16EF0) {
  260.             _0x1714D();
  261.             return
  262.         };
  263.         _0x16F95 = '0' + _0x16F95
  264.     };
  265.     if (10 > _0x16F27) {
  266.         _0x16F27 = '0' + _0x16F27
  267.     };
  268.     if (!_0x170DF) {
  269.         _0x16EF0();
  270.         _0x17229 = true;
  271.         return
  272.     };
  273.     return _0x16F95 + ':' + _0x16F27
  274. }
  275.  
  276. function _0x171BB(_0x16EF0) {
  277.     var _0x16F27 = '';
  278.     var _0x16F5E = _0x16EF0.length - 1;
  279.     for (; 0 <= _0x16F5E; _0x16F5E--) {
  280.         _0x16F27 = _0x16F27 + _0x16EF0[_0x16F5E]
  281.     };
  282.     return _0x16F27
  283. }
  284.  
  285. function _0x171F2() {
  286.     if (_0x17071 == 1) {
  287.         _0x17003();
  288.         return
  289.     };
  290.     this.duration = this.tube.getDuration();
  291.     this.current = this.tube.getCurrentTime();
  292.     if (!_0x16EB9) {
  293.         _0x16FCC()
  294.     };
  295.     $('li.playing .b p .run').text('• Tiempo: ' + this.parseTime(this.current) + ' / ' + this.parseTime(this.duration));
  296.     $('li.playing .filebar .vip').css('width', 100 * this.current / this.duration + '%');
  297.     if (this.current == this.duration) {
  298.         this.siguiente()
  299.     }
  300. }
  301.  
  302. function _0x17229() {
  303.     clearInterval(this.contador)
  304. }
  305.  
  306. function _0x17260(_0x16EF0, _0x16F27) {
  307.     this.contador = setInterval(function () {
  308.         _0x16EF0.call()
  309.     }, _0x16F27)
  310. }
  311.  
  312. function _0x17297(_0x16F5E, _0x16F95) {
  313.     if (!_0x170A8) {
  314.         _0x1714D(0, 0, 0);
  315.         _0x17116 = 1
  316.     } else {
  317.         if (!$('.lista_play').length) {
  318.             return false
  319.         }
  320.     };
  321.     this.lista = _0x16F5E;
  322.     var _0x170DF = $('.query').length ? _0x16F95.find('.lista_play li div h3').text() + ' audio' : this.reverse(_0x16F95.attr('data-id'));
  323.     var _0x17184 = $('#ytply .yc .n').text(_0x16F95.find('.lista_play li div h3').text()).removeClass('eq');
  324.     if (!_0x16FCC) {
  325.         return
  326.     };
  327.     $('.lista_play .a').removeClass('spinner');
  328.     $('li .filebar').remove();
  329.     $('li p .run').remove();
  330.     _0x16F5E.find('li').removeAttr('class');
  331.     _0x16F95.addClass('playing');
  332.     _0x16F95.find('p').prepend('<span class="run">• Tiempo:  00:00 / 00:00</span>');
  333.     if (_0x171BB === 0) {
  334.         _0x17260 = false;
  335.         return
  336.     };
  337.     _0x16F95.append('<div class="filebar"><div class="vip"></div></div>');
  338.     $('.filebar').removeClass('load');
  339.     $('.playing .a').removeClass('spinner');
  340.     $('.player_link').removeClass('act');
  341.     $('.lista_play .a').find('.fa').removeClass('fa-pause').addClass('fa-play');
  342.     $('.lista_play p span.tm').removeAttr('style');
  343.     $('.playing p span.tm').slideUp('fast');
  344.     if (_0x17260 == '.playing  .player_link') {
  345.         _0x16F27(1, 1);
  346.         _0x17003 = null
  347.     };
  348.     $('.playing .filebar').addClass('load');
  349.     $('.playing .a').addClass('spinner');
  350.     var _0x171F2 = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
  351.     if (_0x171F2) {
  352.         if (!_0x16EB9) {
  353.             _0x1703A();
  354.             _0x17260 = false;
  355.             return
  356.         };
  357.         $('html, body').stop().animate({
  358.             scrollTop: $('.playing').offset().top - 118
  359.         })
  360.     } else {
  361.         if (!_0x17071) {
  362.             _0x170A8(null, null, true, 0, 1);
  363.             _0x16FCC = true;
  364.             return
  365.         } else {
  366.             $('html, body').stop().animate({
  367.                 scrollTop: $('.playing').offset().top - 10
  368.             })
  369.         }
  370.     };
  371.     if (this.isPlay) {
  372.         if (!_0x17071) {
  373.             _0x16EF0();
  374.             _0x17260 = 0;
  375.             return
  376.         } else {
  377.             this.pause()
  378.         }
  379.     };
  380.     this.playVideo(_0x170DF)
  381. }
  382.  
  383. function _0x172CE() {
  384.     $(document).on('click', '.player_link, .__p', function (_0x16F27) {
  385.         if (!_0x16EB9) {
  386.             _0x171F2(null);
  387.             return
  388.         };
  389.         if ($(this).hasClass('__p')) {
  390.             _0x16F27 = $(this);
  391.             var _0x16F5E = $('.lista_play li').eq(0);
  392.             var _0x16F95 = $('.lista_play li.playing').length
  393.         } else {
  394.             _0x16F27 = $(this);
  395.             _0x16F5E = _0x16F27.parents('li');
  396.             _0x16F95 = _0x16F5E.hasClass('playing')
  397.         };
  398.         if (!_0x16EB9) {
  399.             return
  400.         };
  401.         if (_0x16F27.hasClass('spinner')) {
  402.             return false
  403.         };
  404.         if (_0x16EF0 === false) {
  405.             _0x17116(0);
  406.             _0x17297 = false;
  407.             return
  408.         };
  409.         if (_0x16F27.hasClass('act')) {
  410.             Player.pause()
  411.         } else {
  412.             if (!_0x17229) {
  413.                 _0x17229(0);
  414.                 _0x1714D = '.lista_play li.playing'
  415.             };
  416.             if (_0x16F95) {
  417.                 Player.play()
  418.             } else {
  419.                 if (_0x170DF === null) {
  420.                     _0x170A8();
  421.                     _0x170A8 = true;
  422.                     return
  423.                 };
  424.                 Player.playing($('.lista_play'), _0x16F5E)
  425.             }
  426.         };
  427.         if (!_0x16EB9) {
  428.             return
  429.         };
  430.         return false
  431.     });
  432.     $(document).on('click', '.items li .c .download:not(.no)', function () {
  433.         var _0x16EF0 = $(this);
  434.         var _0x16F27 = _0x16EF0.parent().parent();
  435.         if (!_0x16EB9) {
  436.             _0x17229(0)
  437.         };
  438.         $('.opt').remove();
  439.         if (_0x16EF0.hasClass('down')) {
  440.             _0x16EF0.removeClass('down').find('i').attr('class', 'fa-download2')
  441.         } else {
  442.             if (_0x170DF === 'seekTo') {
  443.                 _0x17116(0);
  444.                 _0x171BB = 0;
  445.                 return
  446.             };
  447.             $('.lista_play li .ds').removeClass('down').find('i').attr('class', 'fa-download2');
  448.             _0x16EF0.addClass('down').find('i').attr('class', 'fa-spinner');
  449.             ajax({
  450.                 acc: 'descargar',
  451.                 i: _0x16F27.attr('data-id'),
  452.                 t: _0x16F27.find('.tit h3').text()
  453.             }, function (_0x16F5E) {
  454.                 _0x16EF0.find('i').attr('class', 'fa-cancel');
  455.                 _0x16F27.append(_0x16F5E)
  456.             })
  457.         };
  458.         return false
  459.     });
  460.     $(document).on('click', '.filebar', function (_0x16EF0) {
  461.         if (!$('#player').length) {
  462.             return false
  463.         };
  464.         var _0x16F5E = $(this);
  465.         var _0x16F95 = _0x16F5E.offset().left;
  466.         if (!_0x16EB9) {
  467.             _0x17260 = false
  468.         };
  469.         _0x16F5E = _0x16F5E.width();
  470.         if (_0x17003 == true) {
  471.             _0x1703A();
  472.             _0x17071 = 0;
  473.             return
  474.         } else {
  475.             _0x16EF0 = 100 * (_0x16EF0.pageX - _0x16F95) / _0x16F5E
  476.         };
  477.         $('.vip').css('width', _0x16EF0 + '%');
  478.         if (!_0x16F27) {
  479.             _0x16F27(true);
  480.             return
  481.         };
  482.         Player.tube.seekTo(_0x16EF0 * Player.tube.getDuration() / 100)
  483.     });
  484.     $(document).on('keyup', '.search form .ui .search_query', function () {
  485.         if ($('.lcb').is(':visible')) {
  486.             ;
  487.         };
  488.         var _0x16EF0 = $(this).val();
  489.         var _0x16F27 = $('.sugg');
  490.         if (2 < _0x16EF0.length) {
  491.             if (!_0x16F27.length) {
  492.                 if (isMobile()) {
  493.                     $('#n').slideUp('fast')
  494.                 };
  495.                 $('.main').before('<ul class="sugg">')
  496.             };
  497.             if (!_0x16EB9) {
  498.                 _0x17184(false, null);
  499.                 return
  500.             };
  501.             suggest(_0x16EF0)
  502.         } else {
  503.             _0x16F27.remove()
  504.         }
  505.     }).on('click', function (_0x16EF0) {
  506.         var _0x16F27 = $('.sugg');
  507.         if (!$(_0x16EF0.target).closest(_0x16F27).length) {
  508.             _0x16F27.remove()
  509.         }
  510.     })
  511. }
  512. if (!_0x16EB9) {
  513.     _0x170DF();
  514.     return
  515. };
  516. domain = location.hostname;
  517. security = '' + $('.header').attr('protect') + 'mp3xds.icu';
  518. if (domain == security) {
  519.     $('.hd div .form .input.srch').click(_0x16EF0);
  520.     urlseo = _0x16F27;
  521.     suggest = _0x16F5E;
  522.     ajax = _0x16F95;
  523.     isMobile = _0x16FCC;
  524.     stag = document.createElement('script');
  525.     fstag = document.getElementsByTagName('script')[0];
  526.     stag.src = 'https://www.youtube.com/iframe_api';
  527.     fstag.parentNode.insertBefore(stag, fstag);
  528.     if (!_0x16EB9) {
  529.         return
  530.     };
  531.     Player = {
  532.         playVideo: _0x17003,
  533.         onPlayerReady: _0x1703A,
  534.         onPlayerStateChange: _0x17071,
  535.         play: _0x170A8,
  536.         pause: _0x170DF,
  537.         anterior: _0x17116,
  538.         siguiente: _0x1714D,
  539.         parseTime: _0x17184,
  540.         reverse: _0x171BB,
  541.         setCurrent: _0x171F2,
  542.         stop_time: _0x17229,
  543.         start_time: _0x17260,
  544.         playing: _0x17297
  545.     };
  546.     $(document).ready(_0x172CE)
  547. } else {
  548.     window.location = 'http://' + domain
  549. }
  550.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement