NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name AnimeFLV - Clean // @namespace animeflv // @description Modifica el aspecto y mejora la experiencia visual del sitio AnimeFlv. // @include *//animeflv.net/* // @version 1.3 // @grant none // @runat document-start // ==/UserScript== function loadScript(url, callback) { var js = document.createElement("script"); js.type = "text/javascript"; js.src = url; js.onreadystatechange = callback; js.onload = callback; document.body.appendChild(js); //console.log("Script loaded: "+url); } function addCss(cssCode,w) { w=w || "body"; var styleElement = document.createElement("style"); styleElement.type = "text/css"; styleElement.id="ss"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName(w)[0].appendChild(styleElement); //console.log("Style added"); } function addLink(url,rel,type) { var link=document.createElement("link"); link.rel=rel; link.type=type; link.href=url; document.head.appendChild(link); //console.log("Link loaded: "+url); } addCss("body.hideall{background:black;opacity:0;overflow:hidden;transition:all}embed{width:100%;height:100%}*,.drop_menu{position:absolute;height: 0}*{opacity:0;width:0}","head"); addCss((function(){/* .antepisodes li a,.sc-truncate,.suggest-element .tx{white-space:nowrap;text-overflow:ellipsis}embed{width:100%;height:100%}*,.drop_menu{position:absolute;height:0}*{opacity:0;width:0}#overvideo{display:none;top:initial}#overvideo.viss{display:block;top:initial}html{background:#000;opacity:1!important}html .centrar_bloque{display:none}html #navbar{min-height:41px}.drop_menu{margin-left:92px;margin-top:40px;background:#161616;border:3px solid #ff8200;border-top:0;box-shadow:0 0 0;transition:all .3s;overflow:hidden}body #navbar .mmenu_hover li{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAHlBMVEUAAAD///////////////////////////////////8kfJuVAAAACXRSTlMAlXjsWCwXCL/C7GHtAAAANUlEQVQI12MgEXTOnDmzAcSIBDICQAzGmTMngqXYZs6cBlGkOVMBwiieXABhsEyBGSCA33wAbvoL2xwx6KsAAAAASUVORK5CYII=);background-repeat:no-repeat;background-position:102px center;opacity:.6;border-left:solid 3px #ff8200;border-right:solid 3px transparent;margin-right:-3px}body #navbar .mmenu_hover li a{color:#fff;cursor:default}.drop_menu:hover,.mmenu_hover:hover+.drop_menu{box-shadow:0 6px 12px #000;height:auto}body #navbar .mmenu_hover:hover li{opacity:1;border-right:solid 3px #ff8200}.mmenu_hover li{width:131px}#morecontent.big{height:134px}#navbar .drop_menu ul li{float:none}.centrar_bloque .drop_menu ul{background:0 0;padding:0}.sliderout{display:inline-block;opacity:.5}.sliderout:hover{opacity:1}.black #morecontent,.black .dnl{color:#fff;background:#000}html a:focus,html input:focus{outline:0;box-shadow:none}html .episodio_head{display:none}.menu_epi .dnl{position:relative;z-index:60;display:block;padding:10px;color:#000;font-weight:700}html{background-color:#000;height:100%}body{transition:all .5s;min-height:100%;height:auto}html body{height:auto;background-attachment:fixed}body #navbar{top:-1px;min-width:1000px;border-bottom:3px solid #ff8200}#header{paddint-top:40px;background:0 0}#contenido{padding-top:0}input[type=submit]{width:20px}input[type=text]{box-shadow:0 0 0 #ffa300;border-left:solid 3px rgba(255,130,0,.55)}input[type=text]:focus,input[type=text]:hover{border-left:solid 3px rgba(255,130,0,1)}.centrar_bloque{box-shadow:inset 31px 46px 42px -30px #e9e9e9}.jsonSuggest{border-bottom:solid 1px #000;margin-top:12px;box-shadow:-8px 8px 20px -5px rgba(0,0,0,.78);width:219px;z-index:-1;height:350px;overflow-y:auto;overflow-x:hidden;border-left:none;border-top:none;background-color:#252525}.suggest-element small{color:#b9b9b9}.suggest-element .tx{height:20px;line-height:20px;width:140px;overflow:hidden;color:#b9b9b9}.suggest-element .suggest-hover{border-left:solid 3px rgba(255,130,0,1);background-color:#743c00}body #navbar .suggest-element a{display:block;padding:5px;height:40px;cursor:pointer;width:350px;color:#000!important;border-left:solid 3px rgba(255,130,0,.5)}.suggest-element{border-bottom:none;width:390px}.suggest-hover .tx,.suggest-hover small{color:#fff;width:auto;overflow:visible;position:absolute;text-shadow:1px 1px 3px #000;padding:0 5px}.buscador #busqueda_rapida{line-height:20px;background:#3a3a3a;border-left:solid 3px rgba(255,130,0,.4);border-right:solid 3px rgba(255,130,0,.4)}.buscador #busqueda_rapida:focus,.buscador #busqueda_rapida:hover{border-left:solid 3px rgba(255,130,0,1);border-right:solid 3px rgba(255,130,0,1);box-shadow:none;-webkit-box-shadow:none;outline:0}.suggest-hover .tx{background-color:#ff8200;margin-left:45px;box-shadow:0 0 6px #000;border-right:3px solid #000;z-index:0;height:41px;min-width:154px}.suggest-hover small{margin-top:21px;z-index:1}.suggest-hover strong{text-decoration:underline;font-weight:400}.epi_box ul.opvid li:hover{background-color:rgba(255,130,0,.42)}.hoverer:hover{width:156px;border:1px solid #ff8200;background-color:#ffc991;padding:9px}.centrar_bloque li:hover{z-index:999;position:relative;background-color:rgba(252,128,0,.75)}.centrar_bloque ul li.activo,body #navbar ul li.activo{background-color:#fc8000}body #navbar{width:1000px;margin-left:0;transition:margin-top .5s}.centrar_bloque ul{background:url(http://animeflv.net/temas/v1/css/img/logo_naranja.png) no-repeat;background-size:92px;padding-left:92px}.buscador ul,.centrar_bloque .buscador .jsonSuggest{background-color:#252525;margin-left:0;padding-left:0}#header{visibility:hidden;height:2px}.buscador ul{border-bottom:solid 3px #ff8200;margin-top:0;box-shadow:-8px 8px 20px -5px rgba(0,0,0,.78);width:219px;height:350px;overflow-y:auto;overflow-x:hidden;border-left:none;border-top:none}.night{opacity:.6;background-color:#000}.day{opacity:1;background:url(http://animeflv.net/temas/v1/css/img/squares.png) #fff}.black_bg{background-color:rgba(0,0,0,.5)}#player_big{background-color:#000;position:relative;padding:5px;display:block;height:10px}#video_player{position:relative;margin-top:0;left:0;top:0;height:463px}#video_player.bigplayer{margin:none;position:fixed;z-index:990;left:0;top:0;width:100%;height:100%;background-color:#000;padding:0}#closeplayer{float:left;display:inline-block;background-color:rgba(255,143,0,.31);position:relative;top:0;width:127px;padding:8px 0}#closeplayer a{height:30px;color:#fff;line-height:1;font-size:9px}#videosize{width:775px;padding:10px;height:300px}body #navbar.fullnavbar{z-index:991;width:-webkit-calc(100%);width:calc(100%);left:0;margin-top:-44px}#overvideo{z-index:-2;background-color:rgba(65,65,65,.5);color:#fff;font-family:segoe ui;font-size:2em;position:fixed;height:32px;margin-top:3px;left:30px;border:2px solid;border-top:0;box-shadow:0 0 5px rgba(0,0,0,.5);border-color:rgb(rgba(255,255,255,.5));opacity:0;transition:all .1s linear 0s}body #navbar.fullnavbar.shownav{margin-top:0}.black #mostrar_generos,.black .aboxy_lista .generos_links a:link,.black .aboxy_lista .generos_links a:visited,.black .aboxy_lista:nth-child(odd),.black .anime_info .menu a:visited,.black .noticias_der .menu a:link{color:#fff;background-color:#000}@-webkit-keyframes overvideostart{0%,\n\n3%{opacity:0}\n\n40%{opacity:1;box-shadow:0 5px 100px 30px #fff}}@keyframes overvideostart{0%,\n\n3%{opacity:0}\n\n40%{opacity:1;box-shadow:0 5px 100px 30px #fff}}.epi_cont{min-height:75ch}.more{height:36px;display:block;float:right}#contenido{width:100%;display:inline-block}#moreblock{border-bottom:solid 1px #222;height:calc(100%);height:-webkit-calc(100%);box-shadow:inset 0 -5px 15px #000;background-color:#1A1A1A;-webkit-transition:all .5s;transition:all .5s}body #navbar{box-shadow:0 7px 10px -5px #000;height:auto}#moreblock.big{margin-top:0!important}#morecontent{height:52px}#moreblock .left{cursor:default;color:#b6b6b6;font-size:1.2em;font-family:segoe ui;text-shadow:0 1px 1px #000}.about__close,.antepisodes li,.atajos.show,.more a,.sc-clearfix a,html body #navbar #overvideo a{font-family:arial,helvetica,sans-serif}#moreblock ol li{height:24px}#moreblock ol{column-count:3;-moz-column-count:3;-webkit-column-count:3;height:77px;list-style:square;padding-left:26px;color:gray;margin-top:-17px}body #navbar.navunhidden{margin-top:0}#contenido.fullnavbar{height:0;overflow:hidden}.about__keyboardShortcutsContent__inner>dl>dt>kbd>kbd{padding:0 3px;float:left;background-color:#666;height:22px;line-height:22px;min-width:24px;text-align:center;border-radius:3px;text-transform:capitalize;font-weight:700;margin:0 0 0 3px}.about__keyboardShortcutsContent__inner>dl{float:left;margin:0 4% 5px;width:25%;height:22px;line-height:22px;color:#ccc;font-size:11px}.about__keyboardShortcutsContent__inner.atajos{background-color:rgba(10,10,10,0.8);z-index:999;margin-top:0px;display:block;top:-200px;left:0px;position:relative;height:0px;opacity:0;padding:0}.about__keyboardShortcutsContent__inner{position:absolute;width:100%;overflow:hidden;padding:10px 0}.about__legalList{height:26px;padding:0 0 0 15px;line-height:14px;background-color:#333;border-bottom:1px solid #3d3d3d;width:100%;font-size:10px;z-index:1002;position:relative}a.about__close{background:url(http://a2.sndcdn.com/assets/images/about/close-30bd149b.png) right 12px no-repeat;right:7px;position:absolute;text-shadow:none!important;z-index:1003;opacity:.4;-webkit-transition:opacity .3s;-moz-transition:opacity .3s;-o-transition:opacity .3s;transition:opacity .3s;margin-top:-6px}.about a.about__close:focus,a.about__close:hover{opacity:1}.about__legalList>li{float:left;color:#999;display:block;padding:7px 0 5px;font-size:13px}.about__legal{overflow:hidden;background-color:#333;border-bottom:1px solid #111;width:100%;font-size:10px;z-index:1002;position:relative;height:27px}.atajos.show{opacity:1;height:auto;margin-top:-154px;top:0px;padding:46px 0px}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 3px #000;background-color:#969696;border-radius:10px}::-webkit-scrollbar-thumb{border-radius:10px;background-color:#fff;-webkit-box-shadow:inset 0 0 0 1px rgba(0,0,0,.5)}body #navbar{-webkit-transition:margin-top .5s;position:fixed}html body #navbar #overvideo a{text-shadow:0 1px 1px #000;padding:0 10px;line-height:36px}#video_player.bigplayer{width:-webkit-calc(100%);height:-webkit-calc(100%)}body #navbar.fullnavbar #overvideo{animation:overvideostart 1s;-webkit-animation:overvideostart 1s;opacity:.6}body #navbar.fullnavbar #overvideo:hover{opacity:1}#adv1,#cpmstar-site-skin-l,#cpmstar-site-skin-r{display:none}body #navbar #closeplayer a{margin:0;width:auto}.center_nav #night_frame{float:left}.center_nav #night_frame a{width:36px}.center_nav #night_frame span{color:rgba(255,133,0,.67);width:80px;text-align:center;border:3px solid rgba(255,130,0,.5);border-top:0;border-bottom:0}.center_nav #night_frame span:hover{border-color:rgba(255,130,0,1)}.center_nav #night_frame .link_night{width:100%;display:inline-block;background-color:#000}button,html input[type=button],input[type=submit],input[type=reset]{-webkit-appearance:button;cursor:pointer}.header__farRight{border-right:0;float:left;display:inline-flex;position:inherit}.header__navMenu{padding:0}.header__container,.header__navMenu{box-shadow:0 0 0 1px rgba(255,255,255,.05);-webkit-backface-visibility:hidden}.header ul{margin:0;list-style:none}.header__iconMenu{border-left:0;-webkit-box-shadow:none;box-shadow:none;margin:0}.header__navMenu>li{float:left;position:relative}.header__playbackControl{height:40px}.skipControl.disabled{opacity:.5}.skipControl__previous{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAD////////////////////////////////rTT7CAAAACHRSTlMAvCqVFEhr3950mNwAAAAjSURBVAjXYyAONDAwKEIZzh0QBlsHhNFagWAgpOCKEdqJAgAhPAsfl4LEzQAAAABJRU5ErkJggg==) center center no-repeat}.skipControl{opacity:.6;width:19px;height:39px;border:0}.disabled{opacity:.5}.playControl{background:url(http://a2.sndcdn.com/assets/images/header/playback/play-38b02b00.png) 0 12px no-repeat;width:21px;margin:0 -4px;height:45px;border:0}.skipControl:hover{opacity:1}.skipControl__next{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAG1BMVEUAAAD////////////////////////////////rTT7CAAAACHRSTlMAvCqVSBRs33VIadUAAAAjSURBVAjXYyAOCDEwcIAZHaYwRkcCjNHugc5IQChGaCcKAABjSght55NeAgAAAABJRU5ErkJggg==) center center no-repeat}.header__navMenu>li>a{display:block;padding:13px 16px 10px;text-shadow:0 1px 0 #000;-webkit-transition:color .2s linear,-webkit-box-shadow .2s linear;-moz-transition:color .2s linear,box-shadow .2s linear;-o-transition:color .2s linear,box-shadow .2s linear;transition:color .2s linear,box-shadow .2s linear}.g-dark .sc-type-light,.g-dark a{color:#ccc;text-shadow:0 1px 0 #000}.playbackTitle{width:auto;max-width:347px;height:40px;line-height:45px;font-size:13px;border:0!important;padding:0 6px!important;-webkit-transition:none!important;transition:none!important}.sc-truncate{overflow:hidden}a,a:visited{color:#06c;text-decoration:none}.skipControl.skipControl__next,.skipControl.skipControl__previous{padding:0}.header__playbackControl.header__playbackControls{width:auto}body #navbar a.skipControl{padding:0 3px}.playbackTitle center{height:40px;margin-top:-2px;overflow:hidden;text-overflow:ellipsis}.skipControl.disabled:hover{opacity:.5;-webkit-filter:none;filter:none}.epihere{background-color:#FFF5D5}.antepisodes{overflow-x:hidden;overflow-y:auto;max-height:154px;height:auto;position:relative;display:inline-block}#historyinner,.menu_n,body.hideoverflow{overflow:hidden}.antepisodes li:last-child{border-bottom:0}.antepisodes li{width:auto;color:#585858;text-shadow:#FFF 0 1px 0;border-bottom:1px dashed #d2d2d2;line-height:20px;position:relative;list-style:none;-webkit-transition:all 300ms ease-in-out}.antepisodes li a:visited{display:block}.antepisodes li a{z-index:60;display:block;width:100%;text-decoration:none;color:inherit;position:relative;text-shadow:none;overflow:hidden;padding:5px 85px 5px 26px}body #navbar .antepisodes li a:hover,body #navbar .epihere a{color:#000}.antepisodes li:hover{background-color:#edf4ff}body #navbar .antepisodes a,body #navbar .antepisodes a:link{text-align:center;padding:3px 0}body #navbar a.lihere{color:#fff}body #navbar a{color:#999;display:block;padding:0 15px;cursor:pointer}.center_nav,.dot,span.nightspan{display:inline-block}.antepisodes.a-none{height:30px}span.nightspan{cursor:default}.menu_n{width:80px;position:fixed;height:0;background-color:#000;border:3px solid #ff8200;border-top:0;margin-left:0;box-shadow:0 0 0 0 #000}.menu_n:hover,span:hover+.menu_n{height:80px;box-shadow:-1px 5px 20px -4px #000}.menu_n.add_close:hover,span:hover+.menu_n.add_close{height:118px}.dot{background-color:#555;width:8px;height:8px;border-radius:50%;vertical-align:middle;margin:0 0 2px 2px}.black .dot.black-dot,.night .dot.night-dot{background-color:#ff7000}.black,.black #contenedor,.black .aboxy_lista .titulo:link,.black .aboxy_lista .titulo:visited,.black .anime_box,.black .bloque_der h1,.black .epi_box .opcion,.black .epi_box .opcion a,.black .epi_cont,.black .inicio_box,.black .lista_episodios,.black .lista_estrella li a,.black .lista_simple li,.black .lista_simple li a,.black .menu_epi,.black .menu_epi .opt{background-color:#000;color:#fff}.nightspan:hover{background-color:rgba(255,130,0,.3)}.dnl a{display:block}div#slidernight{position:fixed;width:auto;padding:0;height:40px;background-color:#000;border:3px solid #ff8200;border-left:none;margin-left:83px;margin-top:40px;z-index:99}#slidernight #sliderval{width:60px;margin:auto 28px;display:-webkit-box;padding:0;height:3px;top:16px}.center_nav #night_frame #slidernight #sliderval a{width:6px;padding:0;margin:-3px 0;height:15px;background-color:#ff8f00;border-color:#000}.center_nav #night_frame #slidernight span{border:none;color:#fff;width:auto;box-shadow:none;vertical-align:middle;position:relative;float:left;padding:0 6px;font-size:x-large;font-weight:bolder;font-family:monospace;cursor:default}.center_nav #night_frame #slidernight span.plus_right{float:right}html body.black #innerbody.black #contenedor #contenido .anime_box .anime_cont .aboxy_lista a.titulo{background:0 0;background-color:none}html #video_player.bigplayer *{width:100%;height:100%;margin:0}html #video_player.bigplayer embed{width:100%;height:calc(100% + 24px)!important;margin:0;top:0;left:0}html #video_player.bigplayer.showplaybar embed{width:100%;height:100%!important;margin:0}html dd{display:inline-block;margin-left:8px}.black .bloque_der h1,.black .inicio_box{background:#000}.black .lista_simple li:hover,.black .lista_simple li:nth-child(even){color:#fff;background:0 0}.black .lista_simple li a,.black .lista_simple li a:link,.black .lista_simple li a:visited{color:#fff;background-color:transparent;border-top:solid 1px}html .lista_simple li:nth-child(1):hover{border-top:0}html ul.jsonSuggest{background-image:none}html body #video_player.bigplayer #restoresize{position:fixed;z-index:999;width:26px;height:24px;bottom:0;right:0;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYBAMAAAAWrPD2AAAALVBMVEX8/Pz5+fnb29va2tr+/v7f39/d3d0AAACrq6vW1tbe3t6xsbHQ0NDKysq3t7esDLeEAAAAhklEQVQY02OYiQwYprgggCfDESSeD8MBBgQA8lgQgAdFDp13AUgWADE7EPMyXBQUFBQXFywsBNKyYJ5gORDCeeJAHkwOCsC8p6EIEAfmhZeHlpeCea9WAUE5EALBOoZtaWlp6elpZWVAOhvMA7HSwbxNSgigjZe32RgBrBmakXgWaLwOZAAA2JRStNowMJ8AAAAASUVORK5CYII=) #dbdbdb;cursor:pointer}html body #video_player.bigplayer #playbar{position:fixed;width:26px;height:24px;bottom:24px;left:0;background:grey;cursor:pointer}html .black .anime_box,html .black .epi_cont{background:#000}html body #video_player.bigplayer #playbar.playerextra,html body #video_player.bigplayer #restoresize.playerextra{opacity:.2;transition:opacity .3s}html body #video_player.bigplayer #playbar.playerextra:hover,html body #video_player.bigplayer #restoresize.playerextra:hover{opacity:1}.black .anime_cont .generos_box a:link,.black .anime_cont .generos_box a:visited,html .black #contenido .anime_box .anime_info .menu a{color:#fff}.black .anime_cont .generos_box a.actual:link,.black .anime_cont .generos_box a.actual:visited,.black .anime_cont .generos_box a:hover{color:#000}.black .anime_info .menu .actual{background:#000;border:0}.disabledskip{position:relative;background:#fff;width:1px;height:19px;z-index:999;transform:skewX(-20deg);margin-left:9px;top:10px;box-shadow:0 1px 0 #fff;opacity:0} */}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1],"head"); loadScript("//code.jquery.com/jquery-1.11.3.js",function(){ !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function o(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function t(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(c," ")),u.json?JSON.parse(e):e}catch(n){}}function r(n,o){var i=u.raw?n:t(n);return e.isFunction(o)?o(i):i}var c=/\+/g,u=e.cookie=function(t,c,s){if(arguments.length>1&&!e.isFunction(c)){if(s=e.extend({},u.defaults,s),"number"==typeof s.expires){var a=s.expires,d=s.expires=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*a)}return document.cookie=[n(t),"=",i(c),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var f=t?void 0:{},p=document.cookie?document.cookie.split("; "):[],l=0,m=p.length;m>l;l++){var x=p[l].split("="),g=o(x.shift()),j=x.join("=");if(t===g){f=r(j,c);break}t||void 0===(j=r(j))||(f[g]=j)}return f};u.defaults={},e.removeCookie=function(n,o){return e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n)}}); loadScript("//code.jquery.com/ui/1.10.4/jquery-ui.js",function(){ /* FIRST - START - */ $(document).ready(function(e){ document.body.setAttribute("class", "hideall"); $b="<div id='innerbody'>" + document.body.innerHTML + "</div>"; $v=$b; $p=$v.indexOf("a4gss"); $v=$v.substr($p); $p=$v.indexOf('"'); $v=$v.substr(0,$p); $v=$v.replace(new RegExp("jollywallet", 'g'),"*"); $v=$v.replace(new RegExp("ad4game", 'g'),"*"); function clean(obj) { var it; while(obj.children().length) { it = obj.children(":eq(0)").stop(true).unbind().remove(); clean(it); } } document.body.innerHTML=$b; document.body.setAttribute("class", "hideall"); clean($("script")); $("#" + $v).remove(); clean($("#" + $v)); $(document).find("body").append('<style>*{opacity: initial;height: initial;width: initial;position: initial;}'); $ulo=$(".centrar_bloque").children("ul").html(); $(".centrar_bloque").children("ul").remove(); $(".centrar_bloque").prepend("<div id='nmenu'><ul class='mmenu_hover'><li><a>Menu</a></li></ul><div class='drop_menu'><ul>" + $ulo + "</ul></div></div>"); $(".centrar_bloque").show(); }); /* FIRST - END - */ /* FUNCTIONS - START - */ function closeplayer(){ 'use strict'; $('#video_player').css({ 'zIndex': '60', 'position': 'relative' }); } /* function more(){ 'use strict'; if ($('#topnav1').hasClass( 'lihere' ) === false ) { $('#topnav1').addClass('lihere'); $('#topnav2').removeClass('lihere'); } $('#moreblock').toggleClass('big'); if ($('#navbar').hasClass( 'fullnavbar' ) === true ) { $('#navbar').toggleClass('navunhidden'); } if ($( '.atajos' ).hasClass( 'show' ) === true ) { $('.atajos').removeClass('show'); } }*/ function atajos(){ 'use strict'; $('.atajos').toggleClass('show'); if ($('#topnav1').hasClass( 'lihere' ) === true ) { $('#topnav2').addClass('lihere'); $('#topnav1').removeClass('lihere'); } else { $('#topnav1').toggleClass('lihere'); $('#topnav2').removeClass('lihere'); } } function closeat(){ 'use strict'; if ($( '.atajos' ).hasClass( 'show' ) === true ) { $('.atajos').removeClass('show'); } if ($('#topnav1').hasClass( 'lihere' ) === false ) { $('#topnav1').addClass('lihere'); $('#topnav2').removeClass('lihere'); } } function shownavbar(){ 'use strict'; $('.fullnavbar').toggleClass('shownav');} function vidconf(){ 'use strict'; var vp=$(document).find('#video_player'),vpc=$(vp.children()[0]),vpct=vpc.get(0).tagName; $player=vp.find('embed')||$(document).find('object')||$(document).find('object embed')||$(document).find('embed')||$(document).find('iframe'); $player.attr({'width':'100%','height':'100%'}); $player.css({'width':'100%','height':'100%'}); if(vpct=="EMBED") { var fv=vpc.attr("flashvars"); fv=fv.replace("exactfit","none"); vpc.attr("flashvars",fv); } else if(vpct=="OBJECT") { if($(vpc.children[0]).length>0) { if($(vpc.children[0]).get(0).tagName=="EMBED") { } else { } } else { } } else if(vpct=="IFRAME") { } else { } vpc.remove(); vp.prepend(vpc); $(vp.children()[0]).css({'width': '100%', 'height': '100%', 'position': 'relative'}); if(typeof vp.children()[1] == "undefined"){ vp.append('<div id="playbar" class="playerextra"></div>'); } $(document).find('#video_player').append('<div id="playbar" class="playerextra"></div>'); } function showslider(){'use strict';$("#slidernight").toggle();} /* FUNCTIONS - END - */ /* MYSCRIPT - START - */ jQuery.fn.exists = function(){'use strict'; if(window.location.href.indexOf('/ver/') > -1){window.locver=true;}else{window.locver=false;} return this.length>0;}; window.lh=true; window.donecookie=true; window.timecount=0; window.op_black=false; window.op_night=false; window.op_opacity=60; window.op_bigplayer=false; window.sh=true; window.llcookie=""; window.histview=false; window.fb_widget=function(){}; window.fb_found=false; function comments(el) { $(el).removeClass("active"); if($(el).hasClass("c_show")){$(document).find(".comments_sh.c_hide").addClass("active");$(document).find(".facebook_comments_in").removeClass("hide_c");} else{$(document).find(".comments_sh.c_show").addClass("active");$(document).find(".facebook_comments_in").addClass("hide_c");} } function checkwidth(){ window.body_w_o=($(document).find("body").width())-10; bg="resizewindow"; $con=$(document).find("#contenedor"); $nav=$(document).find("#navbar"); $ch=$con.hasClass(bg); if($(window).width()<1006){if(!$ch) $con.addClass(bg);$("body").css("width",window.body_w_o+"px");} else{if($ch) $con.removeClass(bg);$("body").css("width","auto");} } $(document).on("click",".comments_sh",function(){ comments(this); }); function movefb(){ $fb=window.fb_widget=$(document).find(".fb_iframe_widget"); if ($('script').exists()) {$('script').remove();}if($(".bloques").exists()) {$(".bloques").remove();}if($(".gao").exists()) {$(".gao").remove();} $(document).find("#menu_epi").append("<div class='dnl facebook_like_dnl'></div>"); $(document).find(".facebook_like_dnl").append($($fb[0])); $(document).find("#contenido").append("<div class='facebook_comments_out'><div class='facebook_comments_show'><a class='comments_sh c_show active'>Ver comentarios</a><a class='comments_sh c_hide'>Ocultar comentarios</a></div><div class='facebook_comments_in hide_c'></div></div>"); $(document).find(".facebook_comments_in").append($($fb[1])); $(".sub_bloque").remove(); } function checkfb() { window.fb_found=false; docheck(); } function docheck() { if(window.fb_found===false) { if($(document).find(".fb_iframe_widget").length>0) { window.fb_found=true; movefb(); } else { setTimeout(docheck,500); } } } function tnow() { var d = new Date(); var n = d.getTime(); return n; } function nightpage(t){ $valf=1; if(window.op_night && t===false) { $(document.body).removeClass('night'); $('#innerbody').removeClass('night'); if(!t){window.op_night=false;} } else { $(document.body).addClass('night'); $('#innerbody').addClass('night'); $valf=(window.op_opacity*0.01); if(!t){window.op_night=true;} } $('#innerbody').css('opacity', $valf); } function blackpage(t){ if(window.op_black && t===false) { $(document.body).removeClass('black'); $('#innerbody').removeClass('black'); if(!t){window.op_black=false;} } else { $(document.body).addClass('black'); $('#innerbody').addClass('black'); if(!t){window.op_black=true;} } } function playerbig(t){ if(window.op_bigplayer && t===false) { if(document.location.href.indexOf("/ver/")>1) { $('body').removeClass('bigplayer'); $('#video_player').removeClass('bigplayer'); $('#navbar').removeClass('fullnavbar'); $('#overvideo').removeClass('viss'); $('#contenido').removeClass('fullnavbar'); $('.playbackTitle').removeClass('big'); } if(!t){window.op_bigplayer=false;} } else { if(document.location.href.indexOf("/ver/")>1) { $('body').addClass('bigplayer'); $('#video_player').addClass('bigplayer'); $('#navbar').addClass('fullnavbar'); $('#overvideo').addClass('viss'); $('#contenido').addClass('fullnavbar'); $('.playbackTitle').addClass('big'); } if(!t){window.op_bigplayer=true;} } if ($( '#navbar' ).hasClass( 'shownav' ) === true ) { $( '#navbar' ).removeClass( 'shownav' ); } if ($( '#moreblock' ).hasClass( 'big' ) === true ) { $( '#moreblock' ).removeClass( 'big' ); } if ($('#navbar').hasClass( 'fullnavbar' ) === false ) { $('#navbar').removeClass('navunhidden'); } if($(document).find('#video_player #playbar').length==0){$(document).find('#video_player').append('<div id="playbar" class="playerextra"></div>');} } function removefromcookie(n) { var chistory_r=JSON.parse(window.llcookie); var indx=-1; for(var rfc=0; rfc<chistory_r.length; rfc++) { if(chistory_r[rfc][0]==n){indx=rfc;} } if (indx > -1) { chistory_r.splice(indx, 1); var chistjson=JSON.stringify(chistory_r); $.removeCookie('historial', { path: '/' }); $.cookie('historial', chistjson, { expires: 365, path: '/' }); loadhistory(); } } function getCookie() { var chistory=[]; var chistory_rev=[]; var chistjson=""; var htmlhist=""; if($.cookie('historial')===undefined) { $.cookie('historial', '', { expires: 365, path: '/' }); } else { if($.cookie('historial').length>0) { var chistoryparse=JSON.parse($.cookie('historial')); chistory_rev=chistoryparse.reverse(); if(chistoryparse.length>0) { window.timecount=window.timecount+1; if(window.timecount==5) { window.timecount=0; } for(var h=0;h<5;h++) { if(h<chistory_rev.length) { htmlhist+="<li><a href='" + chistory_rev[h][3] + "'>" + chistory_rev[h][1] + " - " + chistory_rev[h][2] + "</a></li>"; } } $(".antepisodes").html(htmlhist); } else { $(".antepisodes").html("<li><a href='#'>NO HAY HISTORIAL DISPONIBLE</a></li>"); chistory = []; } } } if(window.donecookie) { if (window.location.href.indexOf('/ver/') > -1) { $( document ).ready( function(){ var thisLoc=""; var epi=$(".playbackTitle center").html(); var thisName=epi.substr(0,epi.indexOf(" - ")); var thisEpi=epi.substr(epi.indexOf(" - ")+3); var thisTime=timenow(); var thisId=0; if($.cookie('historial').length>0) { chistory=JSON.parse($.cookie('historial')); var actualId=0; if(chistory.length>0) { actualId=chistory[(chistory.length-1)][0]; } if(isNaN(actualId)===false) { thisId=actualId+1; } } if(window.location.href.indexOf("#")>1) { thisLoc = window.location.href.substr(0,window.location.href.indexOf("#")); } else { thisLoc = window.location.href; } var thisArr=[thisId,thisName,thisEpi,thisLoc,thisTime]; if($.cookie('historial').length>5) { chistory.push(thisArr); } else { chistory=[thisArr]; } chistjson=JSON.stringify(chistory); $.removeCookie('historial', { path: '/' }); $.cookie('historial', chistjson, { expires: 365, path: '/' }); }); } else if(window.location.pathname=="/"){ $(".ultimos_epis div.not").each(function(){ $h=($(this).find("a").attr("href")).replace("/ver/","/anime/"); $h=$h.substr(0,$h.lastIndexOf("-"))+".html"; $(this).prepend("<a class='tit_an_a' href='"+$h+"'><span class='tit_ep tit_an_s'>Ver Info de Anime</span></a>"); }); } window.donecookie=false; $("body").append("<div id='historyout'><div id='historyover'></div><div id='historycomplete'><div id='closehbtn'><div id='equis'>x</div></div><div id='historyinner'><div id='toptr'><div id='top_h'><div id='ttr'><div class='ttd'></div><div class='ttd'></div><div class='ttd'>Anime</div><div class='ttd'>Episodio</div><div class='ttd'>Visto</div></div></div></div><div id='historycontent'><table id='historylist'><tbody></tbody></table></div></div></div></div>"); } $("#moreblock").css("margin-top","-"+$("#moreblock").height()+"px"); $("#ss").remove(); //addCss('.atajos.show{margin-top:-'+$("#moreblock").height()+'px}'); window.llcookie=$.cookie('historial'); } /* function addCss(cssCode) { var styleElement = document.createElement("style"); styleElement.type = "text/css"; styleElement.id="ss"; if (styleElement.styleSheet) { styleElement.styleSheet.cssText = cssCode; } else { styleElement.appendChild(document.createTextNode(cssCode)); } document.getElementsByTagName("head")[0].appendChild(styleElement); } */ function fixhistory() { if(window.sh===true){ for(var hi=0; hi<5; hi++) { $($(document).find(".ttd")[hi]).css("width",$($("#fth th")[hi]).width()+"px"); } $(document).find("#fth").hide(); for(var hi2=0; hi2<5; hi2++) { $($(document).find("#historylist tr:nth-child(2) td")[hi]).css("width",$($(".ttd")[hi2]).width()+"px"); } window.sh=false; } } function loadhistory() { if(window.lh===true) { getCookie(); $(document).find("#historylist tbody").html('<tr id="fth"><th></th><th></th><th>Anime</th><th>Episodio</th><th>Visto</th></tr>'); if($.cookie('historial').length>0) { var hparse=JSON.parse($.cookie('historial')), doit=hparse.length, tohtml=""; var h_rev=hparse.reverse(); if(hparse.length>0) { if(hparse.length>100) { doit=100; } for(var h=0;h<doit;h++) { if(h<h_rev.length) { if(typeof h_rev[h][3]=="undefined"){h_rev[h][3]="n/a";} tohtml+="<tr><td><a href='" + h_rev[h][3] + "'>link</a></td><td><a class='delh' href='#" + h_rev[h][0] + "'>Eliminar</a></td><td>" + h_rev[h][1] + "</td><td>" + h_rev[h][2] + "</td><td>" + h_rev[h][4] + "</td></tr>"; } } $(document).find("#historylist tbody").append(tohtml); } else { } } else { } if(window.histview) { window.sh=true; fixhistory(); } } } function more() { if ($(document).find('#topnav1').hasClass( 'lihere' ) === false ){$(document).find('#topnav1').addClass('lihere');$(document).find('#topnav2').removeClass('lihere');}$(document).find('#moreblock').toggleClass('big');if($(document).find('#navbar').hasClass( 'fullnavbar' ) === true ) {$(document).find('#navbar').toggleClass('navunhidden');}if ($(document).find( '.atajos' ).hasClass( 'show' ) === true ) {$(document).find('.atajos').removeClass('show');}} function showplaybar(){ $v=$(document).find("#video_player"); if($v.hasClass("showplaybar")){$v.removeClass("showplaybar");} else{$v.addClass("showplaybar");} } function showhistory() { //loadhistory(); $(document).find('#historyout').fadeIn(300); window.histview=true; fixhistory(); $(document).find('html').addClass('bg'); $(document).find('body').addClass('hideoverflow'); //loadhistory(); } function hidehistory() { window.histview=false; $(document).find('#historyout').fadeOut(300); setTimeout(function() { $(document).find('body').removeClass('hideoverflow'); $(document).find('html').removeClass('bg'); },410); } function timenow() { var currentdate = new Date(); var hoursin=hourfix(currentdate.getHours()); var datetime = currentdate.getDate() + "/" + monthfix((currentdate.getMonth()+1)) + "/" + currentdate.getFullYear() + " " + hoursin[0] + ":" + minfix(currentdate.getMinutes()) + hoursin[1]; return datetime; } function minfix($i) { var r=String($i); if($i.toString().length==1) { r="0"+String($i); } return String(r); } function monthfix($m) { var mo=["Meses","Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"]; return mo[$m]; } function hourfix($h) { var hour=$h; var hs="mn"; if($h>12){hour=$h-12;} if($h>0 && $h<12){hs="am";} else if($h==12){hs="md";} else if($h>12 && $h<24){hs="pm";} var $r=[hour, hs]; return $r; } function getQueryParams(qs) { qs = qs.split("+").join(" "); var params = {}, tokens, re = /[?&]?([^=]+)=([^&]*)/g; while(tokens = re.exec(qs)) { params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); } return params; } function setoptions(){ if($.cookie('options')===undefined) { $.cookie('options', '', { expires: 365, path: '/' }); } var op={ "black" : window.op_black, "night" : window.op_night, "opacity" : window.op_opacity, "bigplayer" : window.op_bigplayer }; var opjonson = ""; opjson=JSON.stringify(op); $.removeCookie('options', { path: '/' }); $.cookie('options', opjson, { expires: 365, path: '/' }); } function checkopts() { if($.cookie('options')!==undefined) { var opts=JSON.parse($.cookie('options')); window.op_black=opts.black; window.op_night=opts.night; window.op_opacity=opts.opacity; window.op_bigplayer=opts.bigplayer; if(window.op_black===true){setTimeout(function(){blackpage(true);},200);} if(window.op_night===true){setTimeout(function(){nightpage(true);},200);} if(window.op_bigplayer===true){setTimeout(function(){playerbig(true);},200);} setTimeout(function(){$( "#sliderval" ).slider("value", window.op_opacity);$( "#innerbody.night" ).css( "opacity" , (window.op_opacity * 0.01) ); setoptions();},500); } } $( document ).ready( function() { 'use strict'; $("embed").each( function(index,element){ if(index > 0){ $( element ).css( "display", "none" ); } } ); } ); function readyFn( jQuery ){ 'use strict'; $("html").attr("style", ""); if ($('#cboxOverlay').exists()) {$('#cboxOverlay').remove();} if ($('#colorbox').exists()) {$('#colorbox').remove();} if($("#footer").exists()) {$('#footer').remove();} if($(".ads").exists()) {$('.ads').remove();} if($(".adspl").exists()) {$(".adspl").remove();} if($(".sub_bloque").exists()) { var sbs=$(".sub_bloque").attr("style"); $(".sub_bloque").attr("style", sbs+"; height:0px !important; width: 0px !important; overflow:hidden; opacity:0;"); checkfb(); } if($(".publi_head").exists()) {$(".publi_head").remove();} if($(".publi_1.blt").exists()) {$(".publi_1.blt").remove();} if($(".publi_1.brt").exists()) {$(".publi_1.brt").remove();} if($(".ads_der").exists()) {$(".ads_der").remove();} if($(".bloque_pos").exists()) {$(".bloque_pos").remove();} if($(".bloque_ads").exists()) {$(".bloque_ads").remove();} if($("#ext-chrome").exists()) {$("#ext-chrome").remove();} $("#header").hide(); $("#cpmstar-site-skin-l").hide(); $("#cpmstar-site-skin-r").hide(); if($("#cpmstar-site-skin-l").exists()) {$('#cpmstar-site-skin-l').remove();} if($("#cpmstar-site-skin-r").exists()) {$("#cpmstar-site-skin-r").remove();} if($("#adv1").exists()) {$("#adv1").remove();} if ($(".opvid").next().attr("id")!="video_player"){$(".opvid").next().remove();} $("#repro_box").attr("class",""); $(".opt").each(function(){$(this).removeClass("opt");$(this).addClass("dnl");}); $('#video_player').next().remove(); $('#ppuoverlay').attr('id', 'shit'); $('#shit').attr('style', 'none'); var marginmore = "", morebigpx = "", $s1 = 0, $s2 = ""; $s1 = document.body.innerHTML.search("a4gss"); if($s1.length>0){ $s2 = document.body.innerHTML.substr($s1,16); if($("#"+$s2).exists()) {$("#"+$s2).remove();} } marginmore = "-82px";morebigpx = "134px"; $("html").attr("style", ""); $('#navbar').append("<div class='center_nav'></div>"); $("#cpmstar-site-skin-l").remove(); $("#cpmstar-site-skin-r").remove(); $( "#navbar" ).append( "<div id='overvideo'><a title='Mostrar Barra de Navegación' id='shownavbarclick'>^</a></div>" ); $( "head" ).append( "<script type='text/javascript'>function closeplayer(){$('#video_player').css({ 'zIndex': '60', 'position': 'relative' });}</script>" ); $( "head" ).append( "<script type='text/javascript'>function showslider(){'use strict';$('#slidernight').toggle();}</script>" ); $( "body" ).append( "<script type='text/javascript'> $( '#ppuover' ).load(function() {$( '#ppuover' ).css({'height':'0','width':'0','position':'','z-index':'-100'});});</script>" ); $( "body" ).append( "<script type='text/javascript'> </script>" ); $( "head" ).append( "<script type='text/javascript'> function atajos() { $('.atajos').toggleClass('show'); if ($('#topnav1').hasClass( 'lihere' ) === true ) { $('#topnav2').addClass('lihere'); $('#topnav1').removeClass('lihere'); } else {$('#topnav1').toggleClass('lihere'); $('#topnav2').removeClass('lihere');} } </script>" ); $( "head" ).append( "<script type='text/javascript'> function closeat() { if ($( '.atajos' ).hasClass( 'show' ) === true ) { $('.atajos').removeClass('show');} if ($('#topnav1').hasClass( 'lihere' ) === false ) { $('#topnav1').addClass('lihere'); $('#topnav2').removeClass('lihere'); }} </script>" ); $( "head" ).append( "<script type='text/javascript'> function shownavbar() { $('.fullnavbar').toggleClass('shownav');}</script>" ); $( "head" ).append( "<script>function vidconf(){'use strict';$player=$(document).find('#video_player embed')||$(document).find('#video_player object')||$(document).find('#video_player object embed')||$(document).find('#flashplayer embed')||$(document).find('#video_player iframe');$player.attr({'width':'100%','height':'100%'});$player.css({'width':'100%','height':'100%'});$(document).find('#video_player').append('<div id=\"playbar\" class=\"playerextra\"></div>');}</script>" ); $( ".buscador" ).before("<div class='more'><a title='Más' id='morepageclick' accesskey='m' style='cursor: pointer;'>Más</a></div>"); $( "#contenido" ).prepend("<div id='morecontent'></div>"); $("<ul class='jsonSuggest' role='listbox' style='top: 31px; left: 0px; width: 226px; z-index: 999; height: 350px; overflow-x: hidden; overflow-y: auto; '>").replaceWith("<ul class='jsonSuggest' role='listbox' style='top: 31px; left: 0px; width: 390px; z-index: 999; height: auto; overflow-y: auto; display: block; overflow-x: visible;'>"); $('.centrar_bloque').css('width', 'auto'); $('.jsonSuggest').css('-webkit-box-shadow', '0px 0px 20px -5px'); $( ".center_nav" ).prepend( "<div id='night_frame'><div id='slidernight'><div class='sliderout'><span class='minus_left'>-</span><span class='plus_right'>+</span><div id='sliderval'></div></div></div><span class='nightspan'>Modo</span><div class='menu_n'><div class='link_night'><a id='nightpageclick' title='Modo Oscuro\n(Alt + O)' accesskey='o' style='width:auto;'>Oscuro<div class='dot night-dot'></div></a><div class='link_black'><a id='blackpageclick' title='Modo Negro\n(Alt + N)' accesskey='n' style='width:auto;'>Negro <div class='dot black-dot'></div></a></div></div></div>" ); $("#navbar").prepend("<div id='moreblock'><div class='left'><a class='about__close' id='closemorepageclick'>Cerrar</a><div class='about__legal'><ul class='sc-list-nostyle about__legalList sc-clearfix'><li><a id='topnav1' class='lihere'>Últimos Episodios Vistos</a></li><li><a id='topnav2'>Atajos de teclado</a></li></ul></div><div class='about__keyboardShortcutsContent__inner antepisodes'></div><div class='about__keyboardShortcutsContent__inner atajos'><dl class='kbd-big'><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>O</kbd></kbd></dt><dd>Visualización modo Oscuro</dd></dl><dl class=''><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>N</kbd></kbd></dt><dd>Visualización modo Negro</dd></dl><dl class='kbd-big'><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>C</kbd></kbd></dt><dd>Cambiar tamaño de Reproductor</dd></dl><dl class=''><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>I</kbd></kbd></dt><dd>Ir a Inicio</dd></dl><dl class=''><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>A</kbd></kbd></dt><dd>Ir a Animes</dd></dl><dl class=''><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>P</kbd></kbd></dt><dd>Ir a Peliculas</dd></dl><dl class=''><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>A</kbd></kbd></dt><dd>Episodio Anterior</dd></dl><dl class=''><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>S</kbd></kbd></dt><dd>Episodio Siguiente</dd></dl><dl class=''><dt><kbd><kbd class='sc-font'>Alt</kbd><kbd class='sc-font'>L</kbd></kbd></dt><dd>Lista de Episodios</dd></dl></div></div><div style='visibility:hidden; display:none;'><a href='http://animeflv.net/' accesskey='1'>Inicio</a><a href='http://animeflv.net/animes/' accesskey='2'>Animes</a><a href='http://pelisgg.com//' accesskey='3'>Peliculas</a></div></div>"); if (window.location.href.indexOf("ver") > -1) { $( '.menu_n' ).append("<div id='closeplayer' style='padding: 5px 0; width: 80px;'><center><a id='playerbigclick' title='Cambiar TamaƱo de Reproductor\n(Alt + C)' accesskey='c'>Cambiar Tamaño de Reproductor</a></center></div>"); $( '.menu_n' ).addClass('add_close'); $(".center_nav").append("<div class='header__farRight header__container'><ul class='header__navMenu header__iconMenu'><li class='header__playbackControl header__playbackControls'> <a class='skipControl skipControl__previous'><div class='disabledskip'></div></a></li><li class='header__playbackControl header__playbackTitle header__bordered'><a class='playbackTitle sc-truncate' accesskey='l' title='Lista de Episodios'></a></li><li class='header__playbackControl header__playbackControls'><a class='skipControl skipControl__next'><div class='disabledskip'></div></a></li></ul></div>"); $("#flashplayer").attr("width", "100%"); $("#flashplayer").attr("height", "100%"); $("#flashplayer").prepend('<param name="scale" value="noScale" />'); var completevideo = "", videointro="", videofile = "", videoend=""; videointro = "<embed allowfullscreen='true' src='/archivos/player.swf' bgcolor='#000' type='application/x-shockwave-flash' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='"; videoend = "stretching=uniform&screencolor=000&plugins=backstroke-1,timeslidertooltipplugin-1' width='auto' class='' height='auto' style='height: calc(100%); height: -webkit-calc(100%); width: 100%; min-height: 463px;' scale='noscale'><div class='videosize'></div>"; if(document.getElementById("video_player")!==null){ videofile = document.getElementById("video_player").innerHTML.substr(198, 153); } completevideo = videointro + videofile + videoend; completevideo=document.getElementById("video_player").innerHTML; completevideo=($(document).find("#video_player embed")[0].outerHTML).replace("stretching=exactfit","stretching=uniform"); $("#video_player embed").remove(); $("#video_player").prepend(completevideo); $("#flashplayer embed").attr("width", "100%"); $("#flashplayer embed").attr("height", "100%"); var $listaepi = $(".lista_episodios").attr("href"); var animetitlethis = $(".episodio_titulo").text(); var animetitle = animetitlethis.lastIndexOf(" "); var animeepi = animetitlethis.substr(animetitle + 1); animetitle = animetitlethis.substr(0, animetitle); animetitle = animetitle.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,""); $(".playbackTitle").attr("href", $listaepi); $(".playbackTitle").attr("title", 'Lista de Episodios de \n"' + animetitle + '"\n(Alt + L)'); $(".playbackTitle").html("<center>" + animetitle + " - " + animeepi + "</center>"); animeepi = animeepi - 1; var locatenum = window.location.href.lastIndexOf("-"); var windowlocate = window.location.href.substr(0,locatenum + 1); addCss("div#slidernight:hover ~ .menu_n {height: 118px;}"); } else { addCss("div#slidernight:hover ~ .menu_n {height: 80px;}"); } var episodes = $(".episodio_head").html(); var $epiante = $(".episodio_titulo").children("a").first().attr("href"); var $comprobacion = $(".episodio_titulo").children("a").first().attr("style"); var $episig = $(".episodio_titulo").children("a").eq(1).attr("href"); if ($comprobacion == "float: left;") { $(".skipControl__previous").attr("href", $epiante); $(".skipControl__previous").attr("title", "Episodio Anterior\n(Alt + A)"); $(".skipControl__previous").attr("accesskey", "a"); if ($episig === undefined) { $(".skipControl__next").addClass("disabled"); $(".skipControl__next").attr("title", "No Existe"); } else { $(".skipControl__next").attr("href", $episig); $(".skipControl__next").attr("title", "Episodio Siguiente\n(Alt + S)"); $(".skipControl__next").attr("accesskey", "s"); } } else if ($comprobacion == "float: right;") { $(".skipControl__previous").addClass("disabled"); $(".skipControl__previous").attr("title", "No Existe"); $(".skipControl__next").attr("href", $epiante); $(".skipControl__next").attr("title", "Episodio Siguiente\n(Alt + S)"); $(".skipControl__next").attr("accesskey", "s"); } else { $(".skipControl__previous").addClass("disabled"); $(".skipControl__next").addClass("disabled"); $(".skipControl__previous").attr("title", "No Existe"); $(".skipControl__next").attr("title", "No Existe"); } $(".antepisodes").html("<li><a href='#'>NO HAY HISTORIAL DISPONIBLE</a></li>"); if ($('.jsonSuggest').is(":visible")){ $('.buscador').css('box-shadow', '0px 9px 20px -5px black'); } else { $('.buscador').css('box-shadow', '0px 0px 0px -5px black'); } $('.opcion span').each(function(){ $(this).remove(); }); $('.opcion').each(function(){ $(this).attr('class', 'dnl'); }); var descargasbox=""; descargasbox = $('#descargas_box.box_opc').html(); $(".box_opc").each(function(){$(this).remove();}); $('#menu_epi').html('<div class="dnl title">Descargas</div>' + descargasbox ); $('#menu_epi .dnl a').each( function() { var varn1=""; varn1 = $( this ).attr("href"); varn1 = varn1.replace("/d.php?url=", ""); varn1 = varn1.replace(/%3A/gi, ":"); varn1 = varn1.replace(/%2F/gi, "/"); $( this ).attr("href",varn1); } ); if(window.location.href.indexOf('delcookies') > -1) { $.removeCookie('historial', { path: '/' }); } $(".sc-list-nostyle").append("<li><a id='topnav3'>Ver Historial Completo</a><li>"); } $( document ).ready( function(){ 'use strict'; checkwidth(); readyFn(); $("body").css("width",window.body_w_n+"px"); $("body").css("transition","width 0.3s"); loadhistory(); $("#slidernight").hide(); $(function() { var $cssval=0; $( "#sliderval" ).slider({ orientation: "horizontal", range: "min", min: 25, max: 99, value: 60, slide: function( event, ui ) { $( "#innerbody.night" ).css( "opacity" , (ui.value * 0.01) ); window.op_opacity=ui.value; setoptions(); } }).mouseup(function(event, ui){ $cssval= ($( "#sliderval" ).slider("value") * 0.01); $( "#innerbody.night" ).css( "opacity" , $cssval ); }); var $ops=document.location.href; var $ah=""; var $aio=""; var $q=""; var $g=""; checkopts(); setTimeout(function(){ $("body").removeClass("hideall"); },501); }); $("#nightpageclick").click(function(e){e.preventDefault(); nightpage(false); $( "#innerbody.night" ).css( "opacity" , ($( "#sliderval" ).slider("value") * 0.01) ); setoptions();}); $("#blackpageclick").click(function(e){e.preventDefault(); blackpage(false);setoptions();}); $("#morepageclick").click(function(e){e.preventDefault(); more();}); $("#closemorepageclick").click(function(e){e.preventDefault(); more();}); $("#closehbtn").click(function(e){e.preventDefault(); hidehistory();}); $("#historyover").click(function(e){e.preventDefault(); hidehistory();}); $("#topnav3").click(function(e){e.preventDefault(); showhistory();}); $("#topnav2").click(function(e){e.preventDefault(); atajos();}); $("#topnav1").click(function(e){e.preventDefault(); closeat();}); $("#playerbigclick").click(function(e){e.preventDefault(); playerbig(false); setoptions();}); $(document).on("click","#restoresize",function(){playerbig(false); setoptions();}); $(document).on("click","#playbar",function(){showplaybar();}); $("#shownavbarclick").click(function(e){e.preventDefault(); shownavbar();}); $("#nightpageclick").hover(function(){showslider();}); $("#slidernight").hover(function(){showslider();}); $(document).on("click",".delh",function(event){ event.preventDefault(); event.stopPropagation(); var n=$(this).attr("href").substr(1); removefromcookie(n); loadhistory(); }); $(document).on("click","#historylist tr",function(){ var turl=$(this).find("a").attr("href"); document.location.href=turl; }); function vidconf(){ var vp=$(document).find('#video_player'),vpc=$(vp.children()[0]),vpct=vpc.get(0).tagName; if(vpct=="EMBED") { var fv=vpc.attr("flashvars"); fv=fv.replace("exactfit","uniform"); vpc.attr("flashvars",fv); } else if(vpct=="OBJECT") { if($(vpc.children[0]).length>0) { if($(vpc.children[0]).get(0).tagName=="EMBED") { } else { } } else { } } else if(vpct=="IFRAME") { } else { } vpc.remove(); vp.prepend(vpc); $(vp.children()[0]).css({'width': '100%', 'height': '100%', 'position': 'relative'}); if(typeof vp.children()[1] == "undefined"){ vp.append('<div id="playbar" class="playerextra"></div>'); } } $(window).load(function(){ if(window.locver===true){vidconf();} $("input").click(function(){$(this).focus();}); $("body").click(function(){$(this).focus();}); $('.ttip').click(function(){if(window.locver===true){vidconf();}}); }); console.info("Website and extension loaded successfully"); console.log("%cAnimeFlv Clean (AFC)", "color: #fc8000; font-size: x-large"); }); $(window).resize(function(){checkwidth();}); /* MYSCRIPT - END - */ addLink("//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css","stylesheet","text/css"); }); }); addCss((function(){/* #historyinner,#historyout{left:0;top:0;bottom:0;right:0}.black .menu_epi .dn{color:#fff}a.skipControl.disabled .disabledskip{opacity:1}#historyout{position:fixed;z-index:999;display:none}#historyover{position:absolute;width:100%;height:100%;background:rgba(0,0,0,.5)}#historycomplete{position:relative;margin:3% auto auto;width:900px;height:85%;background:#f0f0f0;border-radius:10px;border:1px solid grey;box-shadow:1px 1px 30px #000}#historyinner{background:#fff;margin:30px;position:absolute;box-shadow:inset 0 0 8px #737373}#closehbtn{position:absolute;right:-1px;top:-1px;width:30px;height:30px;background:#902424;z-index:2;border-top-right-radius:10px;border:1px solid #890000;opacity:.9;cursor:pointer}#equis,a.delh{position:relative}#equis{margin:auto;display:table;font-family:cursive;color:#dadada;font-size:23px}#closehbtn:hover{background:#be0000;border-color:#ff6767}#closehbtn:hover #equis{color:#fff}html.bg{background:#e4e4e4}#historylist{width:100%;font-size:16px}#historylist td{padding:5px;text-align:center}#historylist th{margin-top:15px;padding:10px}#historylist tr{cursor:pointer}#historylist tr:first-child{cursor:default}#historylist tr:hover{background:rgba(0,110,255,.33)}#historylist tr:first-child:hover{background:0 0}#historylist tr:nth-child(odd) td{background:rgba(207,207,207,.2)}#historylist tr:nth-child(even) td{background:rgba(255,255,255,.2)}#historylist tr td:first-child,#historylist tr th:first-child{display:none}#historylist tr td:nth-child(2),#historylist tr th:nth-child(2),.ttd:nth-child(2){padding-left:25px}#historylist tr td:last-child,#historylist tr th:last-child,.ttd:last-child{padding-right:25px}.black #historycomplete{background:grey}.black #historyinner{background:#000}.ttd{display:inline-block;vertical-align:top;text-align:center;padding:10px;font-family:Arial,Helvetica,sans-serif;font-size:16px}.ttd:first-child{display:none}#historycontent{height:471px;overflow:auto}.black a.delh{color:#bbb}#historylist td,#historylist tr{overflow:hidden}a.delh{z-index:99;padding:5px 15px;margin-top:-5px;margin-left:-21px;color:#000;background:rgba(219,0,0,.3)}a.delh:hover{background:rgba(219,0,0,.7);color:#fff}.black .menu_epi .dnl{color:#fff}div#slidernight:hover~.menu_n{height:80px;box-shadow:#000 -1px 5px 20px -4px}div#slidernight:hover~.menu_n.add_close{height:118px}a.comments_sh{display:none;padding:5px;color:#fff;background:grey;text-align:center;cursor:pointer}.facebook_comments_show{padding:4px;background:#5a5a5a}a.comments_sh.active{display:block}.facebook_comments_in{overflow:hidden;background-color:#ececec}.facebook_comments_in.hide_c{height:0}#contenido{padding-bottom:20px!important}#contenedor.resizewindow{width:100%;margin:0;border:0}body #contenedor.resizewindow #navbar{margin-left:0!important;min-width:0;position:fixed;right:0;left:0;width:100%}.resizewindow .menu_epi{float:none;margin:0;width:auto;display:block}.resizewindow .epi_box{margin:0;display:block}body .fb_iframe_widget{width:100%!important}.anime_episodios li a.dwn:hover{background-color:green}.anime_episodios li a.dwn{width:50px;position:absolute;right:0;top:0;color:#fff;padding:5px;text-align:center;background-color:grey}.anime_episodios li a.dwn::before{content:none}a.tit_an_a{position:absolute;top:0;left:0;z-index:1001;display:none}div.not:hover a.tit_an_a{display:block}span.tit_ep.tit_an_s {top:0;position:relative !important;margin:0 !important}#video_player.bigplayer attt{content:'';position:fixed;bottom:0;left:0;height:24px;width:24px;background:grey} */}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[1],"body");