lucakiebel / DisneyPlus UltraWide

// ==UserScript==
// @name         DisneyPlus UltraWide
// @namespace    https://openuserjs.org/user/lucakiebel
// @version      1.0.0
// @description  Removes black bars for UltraWide (21:9) content on Disney+ on press of u-button.
// @author       lucakiebel
// @match        https://www.disneyplus.com/*
// @license      MIT
// @copyright    2020, lucakiebel (https://openuserjs.org/users/lucakiebel)
// ==/UserScript==

(function(){
    'use strict';
    document.addEventListener("keydown",function(e){if("u"===e.key||"U"===e.key)if(e.preventDefault(),"scale(1.34)"!=document.querySelector("video").style.transform){document.querySelector("video").style.transform="scale(1.34)";const e=new CSSStyleSheet;e.replaceSync("video::-webkit-media-text-track-container {overflow: visible !important;transform: translateY(-148px) !important;position: relative;}"),document.adoptedStyleSheets=[e]}else{document.querySelector("video").style.transform="scale(1)";const e=new CSSStyleSheet;e.replaceSync("video::-webkit-media-text-track-container {overflow: visible !important;transform: translateY(0px) !important;position: relative;}"),document.adoptedStyleSheets=[e]}});
})();