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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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
});