var torrentID = 0; var torrentGenre = false; function checkGenres() { if($(".text-blocked").get(0)) { return false; } mask = /Категория<\/td>[^><]{0,}[^><]{0,}<]+>([^><]+)<\/a>/i; genre = $("#details").html().match(mask); genrees = /\s{0,}(Зарубежные фильмы|Наши фильмы|Телевизор|Мультипликация|Аниме|Игры|Сериалы|Иностранные релизы)\s{0,}/i; if(genre = genre[1].match(genrees)) { torrentGenre = genre[1]; mask = /.*torrent\/(\d+)(\/.{0,}|$)/i; torrent = window.location.href.match(mask); torrentID = torrent[1]; if(torrentID) { a = "Смотреть трейлеры"; if(torrentGenre == 'Игры') { a = "Смотреть трейлеры и другие видео"; } if(torrentGenre == 'Аниме') { a = "Смотреть трейлеры и другие видео"; } mask = /

(.*\([19208]{2}[0-9]{2})[\/\-0-9]{0,5}\)[^>]{0,}<\/h1>/i; if(title = $("#all").html().match(mask)) { title = title[1]; if(torrentGenre != 'Игры') { title = title + " трейлер"; } title = title.replace("'", " "); //console.log(title); $( "
"+a+" getVideo('"+encodeURI(torrentID)+"');
" ).appendTo( "#subdownbar"); /* var __yytcookie = get_cookie("__yt"); if(__yytcookie!=1) { $('
новая фишка
').insertBefore( "#playvideo"); } */ //$('
Плеер снова работает!
').insertBefore( "#playvideo"); } } } } function getVideo(title) { $("#playvideo").click(function(e) { if($("#playvideo").attr("alt")=="0") { $("#video-frame").remove(); w = 700; h = 350; src = '/inc/__youtube.php?i='+title+'&'+Math.random(); iframe = ''; $(iframe).insertAfter( "#playvideo"); $("#playvideo").attr("alt", 1); $("#playvideo_new").remove(); } else { $("#video-frame").remove(); $("#playvideo").attr("alt", 0); } }); } $( "
" ).insertAfter( "#download"); checkGenres(); $("div#download a[href^='/download/']").click(function () { _shitsts(); }); $("div#download a[href^='/parse/d.rutor.org/download/']").click(function () { _shitsts(); }); $("div#download a[href^='http://xrutor.org/parse/d.rutor.org/download/']").click(function () { _shitsts(); }); function _shitsts () { if(!$(".pop_pluss").length) { var PplsTxtA = [ 'Товарищ помни! скачал торрент - поделись с товарищем', 'Поделитесь , Иисус бы поделился', 'Успел скачать? Поделись пока РКН не заблокировал', 'Поделись с товарищем - почисти карму', 'Делитесь и Вам воздастся', 'Святая Инквизиция одобрит твой клик суда', 'Делитесь - это не больно', 'С твоим кликом наша пиратская сила растет, поделитесь' ]; var PplsTxt = PplsTxtA[Math.floor(Math.random() * PplsTxtA.length)]; var pop_pluss = ''; pop_pluss = "
"; pop_pluss = pop_pluss + "
Готово! " + PplsTxt + " →
"; pop_pluss = pop_pluss + "
"; $("#download").append(pop_pluss); loadPluso(".pop_pluss"); $(".pop_pluss").fadeIn(); }} $( '
' ).prependTo( "#subdownbar"); loadPluso('.pluso-bookmark'); $(".share_btn").click(function() { var share_clicked = $(this).attr("data-clicked"); if(share_clicked==0) { fetch('/inc/ajax.php?p=share&t='+encodeURI($("h1").text())+'&u='+encodeURI(window.location.href), { method: 'POST', cache: 'no-cache' }).catch((error) => { console.error('Error:', error); }).then((response) => response.text()).then((text) => { $(".share_win").html(text); $(".share_btn").attr("data-clicked",1) $(".share_win").slideDown(); }); } if(share_clicked==1) { $(".share_win").slideUp(); $(".share_btn").attr("data-clicked",2) } if(share_clicked==2) { $(".share_win").slideDown(); $(".share_btn").attr("data-clicked",1) } }); function __imam(str) { return decodeURIComponent(str); } var browser = false; var _web_mirrors = false; if(/Chrom(e|ium)/.test(navigator.userAgent)) { browser = 'Chrome'; } if(/( OPR|Opera)/.test(navigator.userAgent)) { browser = 'Opera'; } if(/( Firefox)/.test(navigator.userAgent)) { browser = 'Firefox'; } if(browser == 'Chrome sss') { _web_mirrors = __imam('%3Cstyle%3E%0A.overlay%7B%0A background%3A white%3B%0A opacity%3A .8%3B%0A position%3Afixed%3B%0A top%3A0px%3B%0A bottom%3A0px%3B%0A left%3A0px%3B%0A right%3A0px%3B%0A z-index%3A100%3B%0A%7D%0A#box%7B%0A position%3Afixed%3B%0A top%3A-300px%3B%0A left%3A30%25%3B%0A right%3A30%25%3B%0A background-color%3A%23EFF3FB%3B%0A color%3A%23000%3B%0A padding%3A20px%3B%0A border%3A2px solid %238BA7CD%3B%0A z-index%3A101%3B%0A%09width%3A 560px%3B%0A%09text-align%3A left%3B%0A%09display%3A none%3B%0A%7D%0A#box h5 %7B%0A%09font-weight%3A normal%3B%0A font-size%3A 14px%3B%0A%7D%0A#box p%7B%0A font-size%3A 13px%3B%0A%7D%0Aa.boxclose%7B%0A float%3A right%3B%0A margin-top%3A -14px%3B%0A margin-right%3A -17px%3B%0A cursor%3A pointer%3B%0A font-size%3A 45px%3B%0A display%3A inline-block%3B%0A line-height%3A 0px%3B%0A padding%3A 11px 3px%3B %0A%09color%3A %23004679%3B%09%0A%7D%0A.boxclose%3Abefore %7B%0A content%3A %22%C3%97%22%3B%0A%0A%7D%0A%3C%2Fstyle%3E%0A %3Cdiv class%3D%22overlay%22 id%3D%22overlay%22 style%3D%22display%3Anone%3B%22%3E%3C%2Fdiv%3E%0A %0A%3Cdiv class%3D%22box%22 id%3D%22box%22%3E%0A %3Ca class%3D%22boxclose%22 id%3D%22boxclose%22%3E%3C%2Fa%3E%0A%09%3Cp%3E%0A%09%09%3Ch5%3E%D0%A4%D0%B0%D0%B9%D0%BB .torrent %D1%83%D1%81%D0%BF%D0%B5%D1%88%D0%BD%D0%BE %D1%81%D0%BA%D0%B0%D1%87%D0%B0%D0%BD%21%3C%2Fh5%3E%0A%09%3C%2Fp%3E%0A%09%3Cp%3E%0A%09%09%3Cb%3E%D0%92%D0%BD%D0%B8%D0%BC%D0%B0%D0%BD%D0%B8%D0%B5%2C %D1%8D%D1%82%D0%BE %D0%BD%D0%B5 %D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D0%B0%21 %3C%2Fb%3E%3Cbr%3E%0A%09%09%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D0%B5 %D1%80%D0%B0%D1%81%D1%88%D0%B8%D1%80%D0%B5%D0%BD%D0%B8%D0%B5 %3Cb%3EWeb Mirrors%3C%2Fb%3E %D0%B4%D0%BB%D1%8F %D0%B1%D1%80%D0%B0%D1%83%D0%B7%D0%B5%D1%80%D0%B0 Chrome %D0%B8%D0%BB%D0%B8 %D0%AF%D0%BD%D0%B4%D0%B5%D0%BA%D1%81.%D0%91%D1%80%D0%B0%D1%83%D0%B7%D0%B5%D1%80%21%0A%09%09%D0%AD%D1%82%D0%BE %D1%81%D0%BE%D1%85%D1%80%D0%B0%D0%BD%D0%B8%D1%82 %D0%B4%D0%BE%D1%81%D1%82%D1%83%D0%BF %D0%BA %D0%BD%D0%B0%D1%88%D0%B5%D0%BC%D1%83 %D1%82%D1%80%D0%B5%D0%BA%D0%B5%D1%80%D1%83 %D0%BF%D0%BE%D1%81%D0%BB%D0%B5%2C %D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%B5%D0%BC%D0%BE%D0%B9 %D0%B2 %D0%B1%D0%BB%D0%B8%D0%B6%D0%B0%D0%B9%D1%88%D0%B5%D0%B5 %D0%B2%D1%80%D0%B5%D0%BC%D1%8F%2C %D0%B1%D0%BB%D0%BE%D0%BA%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B8 %D1%81%D0%B0%D0%B9%D1%82%D0%B0 %D0%BF%D0%BE %D0%BD%D0%BE%D0%B2%D0%BE%D0%BC%D1%83 %D0%B7%D0%B0%D0%BA%D0%BE%D0%BD%D1%83%0A%09%3C%2Fp%3E%0A%09%3Ca href%3D%27https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fweb-mirrors%2Fibodiflagbgckiajhdhkgnnllcejkgab%27 target%3D%27_blank%27 rel%3D%27nofollow%27%3E%0A%09%09%3Cimg src%3D%27http%3A%2F%2Ftorrent-rutor.org%2Finc%2Fimg%2Fweb-mirrors-button.jpg%27 %2F%3E%0A%09%3C%2Fa%3E%09%0A%3C%2Fdiv%3E%0A%3Cscript%3E%0A%24%28function%28%29 %7B%0A %24%28%22div%23download a%5Bhref%5E%3D%27%2Fparse%2Fd.rutor.org%2Fdownload%2F%27%5D%22%29.click%28function%28%29%7B%0A %24%28%27%23overlay%27%29.fadeIn%28200%2Cfunction%28%29%7B%0A %24%28%27%23box%27%29.show%28%29%3B%0A%09%09%09%24%28%27%23box%27%29.animate%28%7B%27top%27%3A%2725%25%27%7D%2C200%29%3B%0A %7D%29%3B%0A %7D%29%3B%0A %24%28%27%23boxclose%27%29.click%28function%28%29%7B%0A %24%28%27%23box%27%29.animate%28%7B%27top%27%3A%27-300px%27%7D%2C500%2Cfunction%28%29%7B%0A %24%28%27%23overlay%27%29.fadeOut%28%27fast%27%29%3B%0A%09%09%09%0A %7D%29%3B%0A %7D%29%3B%0A %0A%7D%29%3B%0A%3C%2Fscript%3E%0A'); } if(browser == 'Opera szs') { _web_mirrors = __imam('%3Cstyle%3E%0A.overlay%7B%0A background%3A white%3B%0A opacity%3A .8%3B%0A position%3Afixed%3B%0A top%3A0px%3B%0A bottom%3A0px%3B%0A left%3A0px%3B%0A right%3A0px%3B%0A z-index%3A100%3B%0A%7D%0A%23box%7B%0A position%3Afixed%3B%0A top%3A-300px%3B%0A left%3A30%25%3B%0A right%3A30%25%3B%0A background-color%3A%23EFF3FB%3B%0A color%3A%23000%3B%0A padding%3A20px%3B%0A border%3A2px solid %238BA7CD%3B%0A z-index%3A101%3B%0A%09width%3A 560px%3B%0A%09text-align%3A left%3B%0A%09display%3A none%3B%0A%09border-radius%3A 5px%3B%0A%7D%0A%23box h5 %7B%0A%09font-weight%3A normal%3B%0A font-size%3A 14px%3B%0A%7D%0A%23box p%7B%0A font-size%3A 13px%3B%0A%7D%0Aa.boxclose%7B%0A float%3A right%3B%0A margin-top%3A -14px%3B%0A margin-right%3A -17px%3B%0A cursor%3A pointer%3B%0A font-size%3A 45px%3B%0A display%3A inline-block%3B%0A line-height%3A 0px%3B%0A padding%3A 11px 3px%3B %0A%09color%3A %23004679%3B%09%0A%7D%0A.boxclose%3Abefore %7B%0A content%3A %22%C3%97%22%3B%0A%7D%0A%0Aspan%0A%7B%0A%09color%3A %23cc0f16%3B%0A%09font-weight%3A bold%3B%0A%09font-size%3A 17px%3B%0A font-family%3A Helvetica%2C Arial%2C sans-serif%3B%0A%7D%0A%3C%2Fstyle%3E%0A %3Cdiv class%3D%22overlay%22 id%3D%22overlay%22 style%3D%22display%3Anone%3B%22%3E%3C%2Fdiv%3E%0A %0A%3Cdiv class%3D%22box%22 id%3D%22box%22%3E%0A %3Ca class%3D%22boxclose%22 id%3D%22boxclose%22%3E%3C%2Fa%3E%0A%09%3Cp%3E%0A%09%09%3Ch5%3E%D0%A4%D0%B0%D0%B9%D0%BB .torrent %D1%83%D1%81%D0%BF%D0%B5%D1%88%D0%BD%D0%BE %D1%81%D0%BA%D0%B0%D1%87%D0%B0%D0%BD%21%3C%2Fh5%3E%0A%09%3C%2Fp%3E%0A%09%3Cp%3E%0A%09%09%3Cb%3E%D0%92%D0%BD%D0%B8%D0%BC%D0%B0%D0%BD%D0%B8%D0%B5%2C %D1%8D%D1%82%D0%BE %D0%BD%D0%B5 %D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D0%B0%21 %3C%2Fb%3E%3Cbr%3E%0A%09%09%D0%A3%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D0%B5 %D1%80%D0%B0%D1%81%D1%88%D0%B8%D1%80%D0%B5%D0%BD%D0%B8%D0%B5 %3Cb%3EWeb Mirrors%3C%2Fb%3E %D0%B4%D0%BB%D1%8F %D0%B2%D0%B0%D1%88%D0%B5%D0%B3%D0%BE %D0%B1%D1%80%D0%B0%D1%83%D0%B7%D0%B5%D1%80%D0%B0 %3Cspan%3EOpera%3C%2Fspan%3E%21%0A%09%09%D0%AD%D1%82%D0%BE %D1%81%D0%BE%D1%85%D1%80%D0%B0%D0%BD%D0%B8%D1%82 %D0%B4%D0%BE%D1%81%D1%82%D1%83%D0%BF %D0%BA %D0%BD%D0%B0%D1%88%D0%B5%D0%BC%D1%83 %D1%82%D1%80%D0%B5%D0%BA%D0%B5%D1%80%D1%83 %D0%BF%D0%BE%D1%81%D0%BB%D0%B5%2C %D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%B5%D0%BC%D0%BE%D0%B9 %D0%B2 %D0%B1%D0%BB%D0%B8%D0%B6%D0%B0%D0%B9%D1%88%D0%B5%D0%B5 %D0%B2%D1%80%D0%B5%D0%BC%D1%8F%2C %D0%B1%D0%BB%D0%BE%D0%BA%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B8 %D1%81%D0%B0%D0%B9%D1%82%D0%B0 %D0%BF%D0%BE %D0%BD%D0%BE%D0%B2%D0%BE%D0%BC%D1%83 %D0%B7%D0%B0%D0%BA%D0%BE%D0%BD%D1%83%0A%09%3C%2Fp%3E%0A%09%3Ca href%3D%27%2Fwebmirrors.redirect%27 target%3D%27_blank%27 rel%3D%27nofollow%27%3E%0A%09%09%3Cimg src%3D%27http%3A%2F%2Ftorrent-rutor.org%2Finc%2Fimg%2Fweb-mirrors-opera.jpg%27 %2F%3E%0A%09%3C%2Fa%3E%09%0A%3C%2Fdiv%3E%0A%3Cscript%3E%0A%24%28function%28%29 %7B%0A %24%28%22div%23download a%5Bhref%5E%3D%27%2Fparse%2Fd.rutor.org%2Fdownload%2F%27%5D%22%29.click%28function%28%29%7B%0A %24%28%27%23overlay%27%29.fadeIn%28200%2Cfunction%28%29%7B%0A %24%28%27%23box%27%29.show%28%29%3B%0A%09%09%09%24%28%27%23box%27%29.animate%28%7B%27top%27%3A%2725%25%27%7D%2C200%29%3B%0A %7D%29%3B%0A %7D%29%3B%0A %24%28%27%23boxclose%27%29.click%28function%28%29%7B%0A %24%28%27%23box%27%29.animate%28%7B%27top%27%3A%27-300px%27%7D%2C500%2Cfunction%28%29%7B%0A %24%28%27%23overlay%27%29.fadeOut%28%27fast%27%29%3B%0A%09%09%09%0A %7D%29%3B%0A %7D%29%3B%0A %0A%7D%29%3B%0A%3C%2Fscript%3E%0A'); } if(browser == 'Firefox ass') { _web_mirrors = __imam('%3Cstyle%3E%0D%0A.overlay%7B%0D%0A background%3A white%3B%0D%0A opacity%3A .8%3B%0D%0A position%3Afixed%3B%0D%0A top%3A0px%3B%0D%0A bottom%3A0px%3B%0D%0A left%3A0px%3B%0D%0A right%3A0px%3B%0D%0A z-index%3A100%3B%0D%0A%7D%0D%0A%23box%7B%0D%0A position%3Afixed%3B%0D%0A top%3A-300px%3B%0D%0A left%3A30%25%3B%0D%0A right%3A30%25%3B%0D%0A background-color%3A%23EFF3FB%3B%0D%0A color%3A%23000%3B%0D%0A padding%3A20px%3B%0D%0A border%3A2px solid %238BA7CD%3B%0D%0A z-index%3A101%3B%0D%0A%09width%3A 560px%3B%0D%0A%09text-align%3A left%3B%0D%0A%09display%3A none%3B%0D%0A%7D%0D%0A%23box h5 %7B%0D%0A%09font-weight%3A normal%3B%0D%0A font-size%3A 14px%3B%0D%0A%7D%0D%0A%23box p%7B%0D%0A font-size%3A 13px%3B%0D%0A%7D%0D%0Aa.boxclose%7B%0D%0A float%3A right%3B%0D%0A margin-top%3A -14px%3B%0D%0A margin-right%3A -17px%3B%0D%0A cursor%3A pointer%3B%0D%0A font-size%3A 45px%3B%0D%0A display%3A inline-block%3B%0D%0A line-height%3A 0px%3B%0D%0A padding%3A 11px 3px%3B %0D%0A%09color%3A %23004679%3B%09%0D%0A%7D%0D%0A.boxclose%3Abefore %7B%0D%0A content%3A %22%C3%97%22%3B%0D%0A%0D%0A%7D%0D%0A%23firefox_icon%0D%0A%7B%0D%0A%09width%3A72px%3B%0D%0A%7D%0D%0A%0D%0A%3C%2Fstyle%3E%0D%0A %3Cdiv class%3D%22overlay%22 id%3D%22overlay%22 style%3D%22display%3Anone%3B%22%3E%3C%2Fdiv%3E%0D%0A %0D%0A%3Cdiv class%3D%22box%22 id%3D%22box%22%3E%0D%0A %3Ca class%3D%22boxclose%22 id%3D%22boxclose%22%3E%3C%2Fa%3E%0D%0A%09%3Cp%3E%0D%0A%09%09%3Ch5%3E%D0%A4%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D1%80%D0%BE%D0%B2%D0%BA%D0%B8 %D1%81%D0%B0%D0%B9%D1%82%D0%B0 %D0%BF%D0%BE %D0%BD%D0%BE%D0%B2%D0%BE%D0%BC%D1%83 %D0%B7%D0%B0%D0%BA%D0%BE%D0%BD%D1%83%0D%0A%09%3C%2Fp%3E%0D%0A%09%3Ca href%3D%27https%3A%2F%2Faddons.mozilla.org%2Fru%2Ffirefox%2Faddon%2Fweb_mirrors%2F%27 target%3D%27_blank%27 rel%3D%27nofollow%27%3E%0D%0A%09%09%3Cimg src%3D%27http%3A%2F%2Ftorrent-rutor.org%2Finc%2Fimg%2Fweb-mirrors-firefox.jpg%27 %2F%3E%0D%0A%09%3C%2Fa%3E%09%0D%0A%3C%2Fdiv%3E%0D%0A%3Cscript%3E%0D%0A%24%28function%28%29 %7B%0D%0A %24%28%22div%23download a%5Bhref%5E%3D%27%2Fparse%2Fd.rutor.org%2Fdownload%2F%27%5D%22%29.click%28function%28%29%7B%0D%0A %24%28%27%23overlay%27%29.fadeIn%28200%2Cfunction%28%29%7B%0D%0A %24%28%27%23box%27%29.show%28%29%3B%0D%0A%09%09%09%24%28%27%23box%27%29.animate%28%7B%27top%27%3A%2725%25%27%7D%2C200%29%3B%0D%0A %7D%29%3B%0D%0A %7D%29%3B%0D%0A %24%28%27%23boxclose%27%29.click%28function%28%29%7B%0D%0A %24%28%27%23box%27%29.animate%28%7B%27top%27%3A%27-300px%27%7D%2C500%2Cfunction%28%29%7B%0D%0A %24%28%27%23overlay%27%29.fadeOut%28%27fast%27%29%3B%0D%0A%09%09%09%0D%0A %7D%29%3B%0D%0A %7D%29%3B%0D%0A %0D%0A%7D%29%3B%0D%0A%3C%2Fscript%3E%0D%0A'); } if(browser){ $("#download").append(_web_mirrors); }