Wider ANU Timetable

Makes the ANU Timetable wider

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name           Wider ANU Timetable
// @description Makes the ANU Timetable wider
// @description:en Makes the ANU Timetable wider, so that you can read all of the entries better.
// @namespace      http://doi.ac
// @match          https://mytimetable.anu.edu.au/even/timetable/*
// @match          https://mytimetable.anu.edu.au/odd/timetable/*
// @version        0.2
// @license GPLv3
// ==/UserScript==


(function() {
    'use strict';

    window.addEventListener('load', function() {
        var header = document.getElementById('outer-header');
        var container = document.querySelector('.aplus-container');
        
        if (header) {
            header.style.setProperty('max-width', 'none', 'important');
        }
        if (container) {
            container.style.setProperty('max-width', 'none', 'important');
        }
        
        // Force reflow by reading a layout property
        if (header || container) {
            var dummy = (header || container).offsetHeight;
            // Optionally, dispatch a resize event to help trigger any additional layout adjustments
            window.dispatchEvent(new Event('resize'));
        }
    });
})();