Invidious maximized video

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

נכון ליום 24-06-2023. ראה הגרסה האחרונה.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Invidious maximized video
// @namespace    http://tampermonkey.net/
// @version      0.2
// @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 = '20%';
    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%';

    }
})();