NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
Install reddit-fluid-width.user.js with Tampermonkey or Violentmonkey to apply a constrained fluid layout only on Reddit post/comment routes while leaving feeds and landing pages completely native.
Current documented release: 1.0.0.
/r/<community>/comments/<post-id>/ post routes and their descendant pathshttps://www.reddit.com/r/satisfactory/ unchanged#subgrid-container and the direct .main-container.fixed-sidebar row316px while growing only the main post columnThe default mode pins the post workspace inline-end/right edge to 100% with 0px outer margin and changes only the left edge as width adjusts. Set pinRightSidebar to false to center the whole grid as Reddit's left nav expands or collapses.
The userscript loads on Reddit /r/* routes so it is already present when Reddit opens a post through client-side navigation. Style still applies only on the canonical post route and its deeper in-post paths: https://www.reddit.com/r/<community>/comments/<post-id>/
<community> is matched case-insensitively after /r/, and comments must follow immediately.
pushStatereplaceStatepopstatepageshowNo DOM-wide observers or resize loops are used, and no transition overrides are applied. Comment expansion and in-thread pagination preserve the style while the route remains active. CSS percentages and min()/max() are recalculated by the browser as the window or Reddit workspace changes.
Edit near the top of the script:
const CONFIG = Object.freeze({
contentWidthPercent: 95,
minGutterPx: 32,
pinRightSidebar: true,
});
contentWidthPercent controls the max container percentage widthminGutterPx controls minimum left/start safety gutter in pinned mode; in centered mode it is used on both sidespinRightSidebar controls geometry mode:true (default): pins the inline-end/right edge at 100% (0px outer margin), only the left edge moves, and only one gutter is subtractedfalse (opt-in): keeps centered margins (margin-inline: auto) so width changes affect both sidesThe script validates values at runtime:
1-100%16-128pxpinRightSidebar is treated as boolean and defaults to truePinned-right mode (pinRightSidebar: true):
#subgrid-container's inline-end anchored at 100% with 0px outer margincalc(100% - minGutterPx)316px and does not resize nav panelspinRightSidebar: true is the default behaviorCentered mode (pinRightSidebar: false):
margin-inline: auto#subgrid-container, main column, and 316px right rail centered as one cohesive gridcalc(100% - 2 * minGutterPx)1120px baseline and the post-route scopepinRightSidebar: false is an opt-in behaviorpinRightSidebar only changes geometry math. It does not click, expand, pin, or resize any Reddit UI panel; it only rewrites two CSS selectors under post-only scope.#subgrid-container > .main-container.fixed-sidebar#subgrid-container#sticky-comment-composer-wrapper, left nav, back-button positioning, feeds, and comments are not directly modifiedThe floating back-button offset in wide layouts is protected by the fixed 1120px baseline plus a configurable start/left safety gutter in pinned mode, or equal per-side gutters in centered mode.
https://www.reddit.com/r/<community>/comments/<post-id>/; deeper in-post paths are supported too.If you open:
https://www.reddit.com/r/satisfactory/comments/abc123/example-post/
the script applies the fluid post width.
If you return to:
https://www.reddit.com/r/satisfactory/
the layout returns to native without the script's width changes.
Rating: 0