KissAnime Video Expander

Remove the page background and expands the video player while watching videos on KissAnime. It's like full screen without full screen.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @author       TenATaco
// @name         KissAnime Video Expander
// @namespace    http://kissanime.to/
// @version      1.2.0
// @description  Remove the page background and expands the video player while watching videos on KissAnime. It's like full screen without full screen.
// @include      *kissanime.*/Anime/*/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

/* Save the video do that it does not get removed with the page. */
var save = $('#divContentVideo').detach();

/* Delete the page content */
$('body').remove();

/* Add the video back (save) */
$('html').append(save);

/* Change the player to your screen w/h */
$( document.getElementsByTagName('iframe')[0] ).css({
    "width": window.innerWidth,
    "height": window.innerHeight
});



/* Resize the player with your screen */
$( window ).resize(function() {
    $( document.getElementsByTagName('iframe')[0] ).css({
        "width": $( window ).width(),
        "height": $( window ).height()
    });
});

/* Trick the player into thinking you're in full screen! */
$(".vjs-control-bar").remove();
$("#my_video_1_html5_api").prop({
  controls: true
});