9Anime Fullscreen Video + Widescreen format

Automatically clicks the Skip Intro button on Crunchyroll.com when available and makes the video fullscreen

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         9Anime Fullscreen Video + Widescreen format
// @namespace    https://greasyfork.org/en/users/807108-jeremy-r
// @version      1.0
// @description  Automatically clicks the Skip Intro button on Crunchyroll.com when available and makes the video fullscreen
// @author       JRem
// @require      https://cdn.jsdelivr.net/gh/mlcheng/js-toast@ebd3c889a1abaad615712485ce864d92aab4c7c0/toast.min.js
// @match        https://9anime.vc/watch/*
// @grant        GM_addStyle
// @license MIT
// ==/UserScript==

// Toast Vars
const options = {
      settings: {
        duration: 3000,
      },
      style: {
        main: {
          background: "black",
          color: "white",
          width: "auto",
          'max-width': '10%',
        }
      }
};

const volopts = {
      settings: {
        duration: 500,
      },
      style: {
        main: {
          background: "black",
          color: "white",
          width: "auto",
          'max-width': '10%',
        }
      }
};

// Fullscreen Video Code
window.onload = function(){
    setTimeout(function () {
        var css = '.container {width: 98vw !important;max-width: 98vw !important;min-width: 98vw !important;margin: 0;padding: 0;}';
            css += '#wrapper,#site_menu,#logo,#search,.header-group,#header_right {margin: 0;padding: 0;}';
            css += '#watch-block .wb_-playerarea {min-width: 99vw !important;height: 95vh !important;padding-bottom: 0;}';
            css += '#header {display: flex;margin: 0;padding: 0;}';
            css += '.prebreadcrumb {display: none;}';
        GM_addStyle(css);
    }, 5000);
    iqwerty.toast.toast('Fullscreen added', options);
};

var css1 = '.container {width: 98vw !important;max-width: 98vw !important;min-width: 98vw !important;margin: 0;padding: 0;}';
    css1 += '#wrapper,#site_menu,#logo,#search,.header-group,#header_right {margin: 0;padding: 0;}';
    css1 += '#watch-block .wb_-playerarea {min-width: 99vw !important;height: 95vh !important;padding-bottom: 0;}';
    css1 += '#header {display: flex;margin: 0;padding: 0;}';
    css1 += '.prebreadcrumb {display: none;}';
GM_addStyle(css1);