-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunimationPlayerOverride.txt
More file actions
6 lines (6 loc) · 3.03 KB
/
funimationPlayerOverride.txt
File metadata and controls
6 lines (6 loc) · 3.03 KB
1
2
3
4
5
6
javascript:(function(){var b={vis:!0,h:0,hVideo:0,bottomGap:0,mouseShowF:!1,mouseShowDelayHandle:null,gst:function(){return" @import url('https://fonts.googleapis.com/css?family=Open+Sans:700');"+(this.vis?"":" .funimation-player-override-hidden {display:none !important;}")+(this.vis||this.mouseShowF?"":" * {cursor:none !important;}")+" .funimation-player-override-subtitle>div>div {width:100% !important;height:auto !important;bottom:0px !important;top:unset !important;} .funimation-player-override-subtitle>div>div>div {font-family:'Open Sans',sans-serif !important;line-height:1.2em !important;letter-spacing:-0.025em !important;font-size:"+
.0527*this.hVideo+"px;font-weight:700 !important;color:white !important;background-color:transparent !important;text-stroke:0em black !important;-webkit-text-stroke:0em black !important;text-shadow:0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black,0px 0px 0.2em black !important;} .vjs-text-track-display {bottom:"+(this.bottomGap+
.0194*this.hVideo)+"px !important;} #funimation-gradient {display:none !important;}"+(this.vis?"":" #funimation-logo {display:none !important;}")},ast:function(){this.qd(this.doc,"#funimation-player-override-style").textContent=b.gst()},evb:function(a){a.stopPropagation();a.preventDefault()},kye:{_:32,l:37,r:39,u:38,d:40,f:70,s:83},qd:function(a,c){return a.querySelector(c)},qda:function(a,c){return a.querySelectorAll(c)}};b.doc=b.qd(document,"#player").contentDocument;b.elv=b.qd(b.doc,"video");setInterval(function(a){return function(){a.h!==
a.elv.clientHeight&&(a.h=a.elv.clientHeight,a.hVideo=a.elv.videoHeight*Math.min(a.elv.clientWidth/a.elv.videoWidth,a.elv.clientHeight/a.elv.videoHeight),a.bottomGap=(a.elv.clientHeight-a.hVideo)/2,a.ast())}}(b),500);for(var f=b.qda(b.doc,"#brightcove-player>:not(video):not(.vjs-text-track-display)"),e=0,h=f.length;e<h;e++){var d=f[e];d.classList.add("funimation-player-override-hidden")}b.qd(b.doc,".vjs-text-track-display").classList.add("funimation-player-override-subtitle");d=b.qd(b.doc,"#subtitle-style");
d.parentNode.removeChild(d);d=document.createElement("style");d.id="funimation-player-override-style";b.doc.head.appendChild(d);b.ast();b.doc.addEventListener("mousemove",function(a){return function(c){a.mouseShowF=!0;a.ast();clearTimeout(a.mouseShowDelayHandle);a.mouseShowDelayHandle=setTimeout(function(g){return function(){g.mouseShowF=!1;g.ast()}}(a),500)}}(b));b.elv.addEventListener("mousedown",function(a){return function(c){a.vis=!a.vis;a.ast()}}(b));b.doc.addEventListener("keydown",function(a){return function(c){[32,
37,39,38,40].includes(c.keyCode)&&a.evb(c)}}(b));b.doc.addEventListener("keyup",function(a){return function(c){switch(c.keyCode){case a.kye.l:a.evb(c);--a.elv.currentTime;break;case a.kye.r:a.evb(c);a.elv.currentTime+=1;break;case a.kye.s:a.evb(c);a.elv.currentTime+=85;break;case a.kye.f:a.evb(c),a.qd(a.doc,"#funimation-control-fullscreen").click()}}}(b))})();