Invidious maximized video

Maximizes the video in Insidous for YouTube to use the entire width of the browser window.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Invidious maximized video
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Maximizes the video in Insidous for YouTube to use the entire width of the browser window.
// @author       Magusbear
// @license MIT
// @match        http*://*.vern.cc/*
// @match        http*://inv.vern.cc/*
// @match        http*://*.vern.cc/*
// @match        http*://inv.vern.cc/*
// @match        http*://inv.bp.projectsegfau.lt/*
// @match        http*://inv.odyssey346.dev/*
// @match        http*://inv.riverside.rocks/*
// @match        http*://invidious.baczek.me/*
// @match        http*://invidious.epicsite.xyz/*
// @match        http*://invidious.esmailelbob.xyz/*
// @match        http*://invidious.flokinet.to/*
// @match        http*://invidious.lidarshield.cloud/*
// @match        http*://invidious.nerdvpn.de/*
// @match        http*://invidious.privacydev.net/*
// @match        http*://invidious.snopyta.org/*
// @match        http*://invidious.tiekoetter.com/*
// @match        http*://invidious.weblibre.org/*
// @match        http*://iv.melmac.space/*
// @match        http*://vid.puffyan.us/*
// @match        http*://watch.thekitty.zone/*
// @match        http*://y.com.sb/*
// @match        http*://yewtu.be/*
// @match        http*://yt.artemislena.eu/*
// @match        http*://yt.funami.tech/*
// @match        http*://yt.oelrichsgarcia.de/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=vern.cc
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var elements = document.querySelectorAll('.pure-u-md-20-24, .pure-u-md-5-6');
    var playerContainer = document.getElementById('player-container');
    var playerDimensions = document.getElementById('player');

    playerContainer.style.marginLeft = '0px';
    playerContainer.style.marginRight = '0px';
    playerContainer.style.marginTop = '10%';
    playerContainer.style.setProperty('padding-bottom', '55%', 'important');
    playerDimensions.style.setProperty('padding-top', '56.3%', 'important');

    for (var i = 0; i < elements.length; i++) {
        var element = elements[i];
        // Set the width to 100%
        element.style.width = '100%';

    }
})();