Mastodon full-width columns

Makes the columns in Mastodon instances take up all the space.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
/* ==UserStyle==
@name           Mastodon full-width columns
@namespace      gitlab.com/Neui/userstyles
@homepageURL    https://gitlab.com/Neui/userstyles
@supportURL     https://gitlab.com/Neui/userstyles/issues
@version        1.0.1
@license        CC-BY-4.0
@description    Makes the columns in Mastodon instances take up all the space.
@author         Neui
@preprocessor   uso
@var            number    nColumns        "Number of columns"                    4
@var            number    minWidth        "Columns minimum width (px)"           350
@var            number    drawerMinWidth  "Left-most column minimum width (px)"  300
@var            checkbox  drawerFixed     "Left-most column fixed width"         0
==/UserStyle== */

@-moz-document regexp("https?://mastodon\.[a-z0-9.-]+/.*") {
    body:not(.layout-single-column) .columns-area > .drawer,
    body:not(.layout-single-column) .columns-area > .column {
        --drawerFixedWidthForOtherColumns1: initial;
        --drawerFixedWidthForOtherColumns/*[[drawerFixed]]*/: calc(/*[[drawerMinWidth]]*/px / (/*[[nColumns]]*/ * /*[[nColumns]]*/));
        min-width: /*[[minWidth]]*/px;
        width: calc((100% / /*[[nColumns]]*/) + var(--drawerFixedWidthForOtherColumns1, 0px));
    }
    body:not(.layout-single-column) .columns-area > .drawer {
        min-width: /*[[drawerMinWidth]]*/px;
        --drawerFixedWidth1: initial;
        --drawerFixedWidth/*[[drawerFixed]]*/: /*[[drawerMinWidth]]*/px;
        width: var(--drawerFixedWidth1, calc(100% / /*[[nColumns]]*/));
    }
    body:not(.layout-single-column) .columns-area > .column__wrapper > .column {
        width: 100%;
    }
    /* Used when page width is narrow (phone-view) */
    body:not(.layout-single-column) .react-swipeable-view-container .columns-area > .column,
    body:not(.layout-single-column) .react-swipeable-view-container .columns-area > .drawer {
        width: inherit;
    }
}