Invidious: full width

5/24/2023, 9:30:45 AM

// ==UserScript==
// @name        Invidious: full width
// @namespace   Violentmonkey Scripts
// @match       https://invidious.fdn.fr/*
// @match       https://vid.puffyan.us/*
// @match       https://invidious.flokinet.to/*
// @match       https://inv.bp.projectsegfau.lt/*
// @match       https://inv.pistasjis.net/*
// @match       https://invidious.lunar.icu/*
// @match       https://yt.artemislena.eu/*
// @match       https://inv.tux.pizza/*
// @match       https://invidious.io.lol/*
// @match       https://invidious.privacydev.net/*
// @match       https://vid.priv.au/*
// @match       https://inv.zzls.xyz/*
// @match       https://invidious.protokolla.fi/*
// @match       https://yt.oelrichsgarcia.de/*
// @match       https://onion.tube/*
// @match       https://iv.nboeck.de/*
// @match       https://invidious.asir.dev/*
// @match       https://inv.in.projectsegfau.lt/*
// @match       https://iv.ggtyler.dev/*
// @match       https://iv.datura.network/*
// @match       https://anontube.lvkaszus.pl/*
// @match       https://invidious.private.coffee/*
// @match       https://invidious.perennialte.ch/*
// @match       https://invidious.slipfox.xyz/*
// @match       https://invidious.no-logs.com/*
// @match       https://yt.drgnz.club/*
// @match       https://yt.cdaut.de/*
// @match       https://yewtu.be/*
// @match       https://iv.melmac.space/*
// @match       https://inv.makerlab.tech/*
// @match       https://inv.citw.lgbt/*
// @match       https://invidious.tiekoetter.com/*
// @match       https://invidious.projectsegfau.lt/*
// @grant       none
// @version     1.1
// @author      -
// @license MIT
// @description 5/24/2023, 9:30:45 AM
// ==/UserScript==

/*
# python code for upadting instance list
import requests
instances = requests.get('https://api.invidious.io/instances.json').json()
webinstances = [i[0] for i in instances if not i[0].endswith('onion') and not i[0].endswith('i2p')]
for webinstance in webinstances:
    print(f'// @match       https://{webinstance}/' + '*')
*/

function addStyle(style)
{
    var headelem = document.getElementsByTagName("head")[0];
    var styleelem = document.createElement("style");
    styleelem.setAttribute("id","remove-overlays");
    styleelem.type="text/css";
    styleelem.appendChild(document.createTextNode(style));
    headelem.appendChild(styleelem);
}


if (document.querySelector('a[href="https://github.com/iv-org/invidious"]')) {
  document.querySelector("#contents").className="pure-u-md-24-24";
  addStyle("#player-container { margin-left: 0em; margin-right: 0em; }");
}