TypeScript Width Fix

Fix the damn width in typescript docs.

Fra 30.01.2025. Se den seneste versjonen.

// ==UserScript==
// @name         TypeScript Width Fix
// @namespace    https://www.typescriptlang.org
// @version      v1.2
// @description  Fix the damn width in typescript docs.
// @author       erucix
// @match        https://www.typescriptlang.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=typescriptlang.org
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    window.onload = function() {
        let article = document.querySelector(".whitespace.raised");
        if(article){
            article.setAttribute("style", "width: -webkit-fill-available;");
        }
    }
})();