Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _0x16EF0() {
- if (_0x16F5E === null) {
- return
- };
- $('input[name=buscar]').focus()
- }
- function _0x16F27(_0x16EF0) {
- _0x16EF0 = _0x16EF0.replace(/^\s+|\s+$/g, '');
- _0x16EF0 = _0x16EF0.toLowerCase();
- var _0x16F27 = 0;
- for (; 28 > _0x16F27; _0x16F27++) {
- if (!_0x16FCC) {
- _0x16F5E();
- return
- };
- _0x16EF0 = _0x16EF0.replace(new RegExp('àáäâèéëêìíïîòóöôùúüûñç·/_,:;' ['charAt'](_0x16F27), 'g'), 'aaaaeeeeiiiioooouuuunc------' ['charAt'](_0x16F27))
- };
- return _0x16EF0 = _0x16EF0.replace(/[^a-z0-9 -]/g, '').replace(/\s+/g, '-').replace(/-+/g, '-')
- }
- function _0x16F5E(_0x16EF0) {
- var _0x16F27 = $('.sugg');
- if (_ajx) {
- _ajx.abort()
- };
- _ajx = $.ajax({
- url: '//suggestqueries.google.com/complete/search?client=firefox&ds=yt&q=' + _0x16EF0,
- type: 'GET',
- dataType: 'jsonp',
- success: function (_0x16F5E) {
- _0x16F5E = _0x16F5E[1];
- var _0x16FCC = '';
- var _0x17003 = new RegExp(_0x16EF0, 'g');
- var _0x1703A = 0;
- for (; _0x1703A < (10 < _0x16F5E.length ? 10 : _0x16F5E.length); _0x1703A++) {
- _0x16FCC = _0x16FCC + ('<li><a href="http://' + urlseo(_0x16F5E[_0x1703A]) + '.mp3xds.icu/">' + _0x16F5E[_0x1703A].replace(_0x17003, '<b>' + _0x16EF0 + '</b>') + '</a></li>')
- };
- if (_0x16FCC.length) {
- if (!_0x172CE) {
- _0x17071();
- return
- };
- _0x16F27.show().html(_0x16FCC)
- } else {
- if (!_0x170DF) {
- _0x16F95 = null
- } else {
- _0x16F27.remove()
- }
- }
- }
- })
- }
- function _0x16F95(_0x16EF0, _0x16F5E) {
- _ajx && _ajx.abort();
- if (_0x16F27 == null) {
- _0x172CE(null)
- };
- _ajx = $.post('ajax.php', _0x16EF0).done(function (_0x16EF0) {
- 'function' == typeof _0x16F5E && _0x16F5E(_0x16EF0)
- })
- }
- function _0x16FCC() {
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
- }
- function _0x17003(_0x16F5E) {
- $('.playing .player_link').addClass('act');
- this.isPlay = 1;
- if (_0x16F27 === false) {
- _0x16EF0();
- return
- };
- if ($('#player').length) {
- if ($('.query').length) {
- if (!_0x16EB9) {
- _0x17184()
- };
- this.tube.loadPlaylist({
- list: _0x16F5E,
- listType: 'search',
- index: 0,
- suggestedQuality: 100
- })
- } else {
- this.tube.loadVideoById({
- videoId: _0x16F5E,
- suggestedQuality: 'small'
- })
- }
- } else {
- if (_0x16F27 === 0) {
- _0x171BB = 'siguiente';
- return
- };
- $('<iframe/>', {
- id: 'player',
- frameborder: 0,
- allowfullscreen: 1,
- allow: 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture',
- title: 'YouTube video player',
- 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'
- }).appendTo('body');
- this.tube = new YT.Player('player', {
- events: {
- onReady: this.onPlayerReady,
- onStateChange: this.onPlayerStateChange,
- suggestedQuality: 'small'
- }
- })
- }
- }
- function _0x1703A(_0x16EF0) {
- _0x16EF0.target.playVideo();
- Player.play()
- }
- function _0x17071(_0x16EF0) {
- if (0 == _0x16EF0.data) {
- Player.siguiente()
- } else {
- if (!_0x16EB9) {
- _0x17184();
- return
- };
- if (3 == _0x16EF0.data || -1 == _0x16EF0.data) {
- if (!_0x16EB9) {
- _0x17003 = true;
- return
- } else {
- $('.playing .filebar').addClass('load')
- };
- $('.playing .a').addClass('spinner');
- $('.playing p span.run').removeAttr('style').text('Cargando...');
- if (_0x17260 === false) {
- return
- };
- if (-1 == _0x16EF0.data && $('.query').length) {
- Player.playing($('.lista_play'), $('.lista_play li').eq($('.playing').index()))
- }
- } else {
- if (1 == _0x16EF0.data) {
- if (!_0x16EB9) {
- return
- };
- $('#ytply .yc .n').addClass('eq');
- $('.playing .player_link').addClass('act');
- $('.playing .a').find('.fa').removeClass('fa-play').addClass('fa-pause');
- $('.playing p span.run').removeAttr('style');
- $('.playing p span.tm').slideUp('fast');
- if (!_0x16F5E) {
- _0x17229(0);
- _0x17297 = 'text';
- return
- } else {
- $('.filebar').removeClass('load')
- };
- $('.playing .a').removeClass('spinner');
- Player.stop_time();
- Player.start_time(function () {
- if (!_0x16EB9) {
- return
- };
- Player.setCurrent()
- }, 1E3)
- } else {
- if (!_0x16EB9) {
- _0x171F2(false);
- _0x17184 = 'setCurrent';
- return
- };
- if (2 == _0x16EF0.data) {
- $('#ytply .yc .n').removeClass('eq');
- $('.playing .player_link').removeClass('act');
- $('.playing .a').find('.fa').removeClass('fa-pause').addClass('fa-play');
- if (_0x17260 === 0) {
- _0x17116('addClass', 1, 0);
- return
- } else {
- $('.playing p span.tm').removeAttr('style')
- };
- $('.playing p span.run').slideUp('fast')
- }
- }
- }
- }
- }
- function _0x170A8() {
- this.stop_time();
- if (!_0x16EB9) {
- _0x171F2(true, null, true, 'ajax');
- _0x16EF0 = null;
- return
- };
- this.start_time(function () {
- Player.setCurrent()
- }, 1E3);
- this.tube.playVideo();
- return this
- }
- function _0x170DF() {
- this.tube.pauseVideo();
- this.stop_time();
- return this
- }
- if (_0x171F2 == 1) {
- _0x17229 = '.lista_play li.playing'
- };
- function _0x17116() {
- if (!_0x16EB9) {
- _0x172CE = null;
- return
- };
- if (!this.lista) {
- return false
- };
- prev = this.lista.find('li.playing').prev();
- if (_0x16F5E === 'getElementsByTagName') {
- _0x16F95(false);
- _0x16F95 = null;
- return
- };
- if (0 == this.lista.find('li.playing').index()) {
- prev = this.lista.find('li').eq(this.lista.find('li').length - 1)
- };
- this.playing(this.lista, prev)
- }
- function _0x1714D() {
- if (!this.lista) {
- if (!_0x16FCC) {
- _0x16FCC();
- _0x16FCC = 'removeClass'
- };
- return false
- };
- next = this.lista.find('li.playing').next();
- if (this.lista.find('li').length - 1 == this.lista.find('li.playing').index()) {
- next = this.lista.find('li').eq(0)
- };
- if (_0x17260 === 1) {
- return
- };
- this.playing(this.lista, next)
- }
- function _0x17184(_0x16F27) {
- var _0x16F5E = Math.floor(_0x16F27 / 3600);
- var _0x16F95 = Math.floor((_0x16F27 - 3600 * _0x16F5E) / 60);
- _0x16F27 = Math.floor(_0x16F27 - 3600 * _0x16F5E - 60 * _0x16F95);
- if (10 > _0x16F95) {
- if (!_0x16EF0) {
- _0x1714D();
- return
- };
- _0x16F95 = '0' + _0x16F95
- };
- if (10 > _0x16F27) {
- _0x16F27 = '0' + _0x16F27
- };
- if (!_0x170DF) {
- _0x16EF0();
- _0x17229 = true;
- return
- };
- return _0x16F95 + ':' + _0x16F27
- }
- function _0x171BB(_0x16EF0) {
- var _0x16F27 = '';
- var _0x16F5E = _0x16EF0.length - 1;
- for (; 0 <= _0x16F5E; _0x16F5E--) {
- _0x16F27 = _0x16F27 + _0x16EF0[_0x16F5E]
- };
- return _0x16F27
- }
- function _0x171F2() {
- if (_0x17071 == 1) {
- _0x17003();
- return
- };
- this.duration = this.tube.getDuration();
- this.current = this.tube.getCurrentTime();
- if (!_0x16EB9) {
- _0x16FCC()
- };
- $('li.playing .b p .run').text('• Tiempo: ' + this.parseTime(this.current) + ' / ' + this.parseTime(this.duration));
- $('li.playing .filebar .vip').css('width', 100 * this.current / this.duration + '%');
- if (this.current == this.duration) {
- this.siguiente()
- }
- }
- function _0x17229() {
- clearInterval(this.contador)
- }
- function _0x17260(_0x16EF0, _0x16F27) {
- this.contador = setInterval(function () {
- _0x16EF0.call()
- }, _0x16F27)
- }
- function _0x17297(_0x16F5E, _0x16F95) {
- if (!_0x170A8) {
- _0x1714D(0, 0, 0);
- _0x17116 = 1
- } else {
- if (!$('.lista_play').length) {
- return false
- }
- };
- this.lista = _0x16F5E;
- var _0x170DF = $('.query').length ? _0x16F95.find('.lista_play li div h3').text() + ' audio' : this.reverse(_0x16F95.attr('data-id'));
- var _0x17184 = $('#ytply .yc .n').text(_0x16F95.find('.lista_play li div h3').text()).removeClass('eq');
- if (!_0x16FCC) {
- return
- };
- $('.lista_play .a').removeClass('spinner');
- $('li .filebar').remove();
- $('li p .run').remove();
- _0x16F5E.find('li').removeAttr('class');
- _0x16F95.addClass('playing');
- _0x16F95.find('p').prepend('<span class="run">• Tiempo: 00:00 / 00:00</span>');
- if (_0x171BB === 0) {
- _0x17260 = false;
- return
- };
- _0x16F95.append('<div class="filebar"><div class="vip"></div></div>');
- $('.filebar').removeClass('load');
- $('.playing .a').removeClass('spinner');
- $('.player_link').removeClass('act');
- $('.lista_play .a').find('.fa').removeClass('fa-pause').addClass('fa-play');
- $('.lista_play p span.tm').removeAttr('style');
- $('.playing p span.tm').slideUp('fast');
- if (_0x17260 == '.playing .player_link') {
- _0x16F27(1, 1);
- _0x17003 = null
- };
- $('.playing .filebar').addClass('load');
- $('.playing .a').addClass('spinner');
- var _0x171F2 = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
- if (_0x171F2) {
- if (!_0x16EB9) {
- _0x1703A();
- _0x17260 = false;
- return
- };
- $('html, body').stop().animate({
- scrollTop: $('.playing').offset().top - 118
- })
- } else {
- if (!_0x17071) {
- _0x170A8(null, null, true, 0, 1);
- _0x16FCC = true;
- return
- } else {
- $('html, body').stop().animate({
- scrollTop: $('.playing').offset().top - 10
- })
- }
- };
- if (this.isPlay) {
- if (!_0x17071) {
- _0x16EF0();
- _0x17260 = 0;
- return
- } else {
- this.pause()
- }
- };
- this.playVideo(_0x170DF)
- }
- function _0x172CE() {
- $(document).on('click', '.player_link, .__p', function (_0x16F27) {
- if (!_0x16EB9) {
- _0x171F2(null);
- return
- };
- if ($(this).hasClass('__p')) {
- _0x16F27 = $(this);
- var _0x16F5E = $('.lista_play li').eq(0);
- var _0x16F95 = $('.lista_play li.playing').length
- } else {
- _0x16F27 = $(this);
- _0x16F5E = _0x16F27.parents('li');
- _0x16F95 = _0x16F5E.hasClass('playing')
- };
- if (!_0x16EB9) {
- return
- };
- if (_0x16F27.hasClass('spinner')) {
- return false
- };
- if (_0x16EF0 === false) {
- _0x17116(0);
- _0x17297 = false;
- return
- };
- if (_0x16F27.hasClass('act')) {
- Player.pause()
- } else {
- if (!_0x17229) {
- _0x17229(0);
- _0x1714D = '.lista_play li.playing'
- };
- if (_0x16F95) {
- Player.play()
- } else {
- if (_0x170DF === null) {
- _0x170A8();
- _0x170A8 = true;
- return
- };
- Player.playing($('.lista_play'), _0x16F5E)
- }
- };
- if (!_0x16EB9) {
- return
- };
- return false
- });
- $(document).on('click', '.items li .c .download:not(.no)', function () {
- var _0x16EF0 = $(this);
- var _0x16F27 = _0x16EF0.parent().parent();
- if (!_0x16EB9) {
- _0x17229(0)
- };
- $('.opt').remove();
- if (_0x16EF0.hasClass('down')) {
- _0x16EF0.removeClass('down').find('i').attr('class', 'fa-download2')
- } else {
- if (_0x170DF === 'seekTo') {
- _0x17116(0);
- _0x171BB = 0;
- return
- };
- $('.lista_play li .ds').removeClass('down').find('i').attr('class', 'fa-download2');
- _0x16EF0.addClass('down').find('i').attr('class', 'fa-spinner');
- ajax({
- acc: 'descargar',
- i: _0x16F27.attr('data-id'),
- t: _0x16F27.find('.tit h3').text()
- }, function (_0x16F5E) {
- _0x16EF0.find('i').attr('class', 'fa-cancel');
- _0x16F27.append(_0x16F5E)
- })
- };
- return false
- });
- $(document).on('click', '.filebar', function (_0x16EF0) {
- if (!$('#player').length) {
- return false
- };
- var _0x16F5E = $(this);
- var _0x16F95 = _0x16F5E.offset().left;
- if (!_0x16EB9) {
- _0x17260 = false
- };
- _0x16F5E = _0x16F5E.width();
- if (_0x17003 == true) {
- _0x1703A();
- _0x17071 = 0;
- return
- } else {
- _0x16EF0 = 100 * (_0x16EF0.pageX - _0x16F95) / _0x16F5E
- };
- $('.vip').css('width', _0x16EF0 + '%');
- if (!_0x16F27) {
- _0x16F27(true);
- return
- };
- Player.tube.seekTo(_0x16EF0 * Player.tube.getDuration() / 100)
- });
- $(document).on('keyup', '.search form .ui .search_query', function () {
- if ($('.lcb').is(':visible')) {
- ;
- };
- var _0x16EF0 = $(this).val();
- var _0x16F27 = $('.sugg');
- if (2 < _0x16EF0.length) {
- if (!_0x16F27.length) {
- if (isMobile()) {
- $('#n').slideUp('fast')
- };
- $('.main').before('<ul class="sugg">')
- };
- if (!_0x16EB9) {
- _0x17184(false, null);
- return
- };
- suggest(_0x16EF0)
- } else {
- _0x16F27.remove()
- }
- }).on('click', function (_0x16EF0) {
- var _0x16F27 = $('.sugg');
- if (!$(_0x16EF0.target).closest(_0x16F27).length) {
- _0x16F27.remove()
- }
- })
- }
- if (!_0x16EB9) {
- _0x170DF();
- return
- };
- domain = location.hostname;
- security = '' + $('.header').attr('protect') + 'mp3xds.icu';
- if (domain == security) {
- $('.hd div .form .input.srch').click(_0x16EF0);
- urlseo = _0x16F27;
- suggest = _0x16F5E;
- ajax = _0x16F95;
- isMobile = _0x16FCC;
- stag = document.createElement('script');
- fstag = document.getElementsByTagName('script')[0];
- stag.src = 'https://www.youtube.com/iframe_api';
- fstag.parentNode.insertBefore(stag, fstag);
- if (!_0x16EB9) {
- return
- };
- Player = {
- playVideo: _0x17003,
- onPlayerReady: _0x1703A,
- onPlayerStateChange: _0x17071,
- play: _0x170A8,
- pause: _0x170DF,
- anterior: _0x17116,
- siguiente: _0x1714D,
- parseTime: _0x17184,
- reverse: _0x171BB,
- setCurrent: _0x171F2,
- stop_time: _0x17229,
- start_time: _0x17260,
- playing: _0x17297
- };
- $(document).ready(_0x172CE)
- } else {
- window.location = 'http://' + domain
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement