Arwic / UWA Help Forum Max Width

// ==UserScript==
// @name         UWA Help Forum Max Width
// @namespace    https://tim-ings.com/
// @version      1.0
// @description  prevents posts in the UWA help forums from causing horizontal scrolling
// @author       Tim Ings
// @match        https://secure.csse.uwa.edu.au/run/help*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const addCss = (css) => {
        const head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        const style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    };

    addCss(".fixed-font { max-width: 90vw; white-space: pre-wrap; }");
})();