9Anime Fullscreen Video + Widescreen format

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

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

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

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

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

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