Created
April 16, 2020 07:58
-
-
Save jnaskali/896f4a9a1ff7bf6ae8ad2324f39fd6f2 to your computer and use it in GitHub Desktop.
Userscript with simple CSS that resizes Invidious video players to full-width
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Invidious full-width video | |
// @author jnaskali | |
// @copyright 2020, Juhani Naskali (www.naskali.fi) | |
// @license MIT | |
// @version 1.0 | |
// @namespace https://www.naskali.fi | |
// @downloadURL https://openuserjs.org/install/jnaskali/Invidious_full-width_video.user.js | |
// | |
// @match https://invidio.us/watch?v=* | |
// @match https://invidious.*/watch?v=* | |
// @match https://yewtu.be/watch?v=* | |
// @grant none | |
// @run-at document-start | |
// | |
// @description Simple CSS that resizes Invidious video players to full-width. | |
// ==/UserScript== | |
var style = document.createElement('style'); | |
style.innerHTML = ` | |
#player-container { | |
margin: 0 -12% 12%; | |
} | |
`; | |
document.head.appendChild(style); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment