Tampermonkey script that expands Perplexity tables to use the full available width while respecting the existing UI.
Quick install:
Author: IanWardell
License: MIT
Version: 1.0.2
| Before | After |
|---|---|
![]() |
![]() |
- Browser: Chrome 120+ (tested), Firefox 122+, Edge 120+
- Tampermonkey: v4.20+ (required)
- Verified on: Windows 11
- Perplexity.ai UI changes frequently. If the script stops working after a site update, see Troubleshooting and open an issue with details.
- Violentmonkey and Greasemonkey have not been tested. They may work, but they are not officially supported by my testing at this time.
- Install the loader script:
https://github.com/IanWardell/TamperMonkey-Perplexity-Full-Width-Tables/raw/refs/heads/main/TamperMonkey-Installer-Perplexity-Full-Width.user.js - Open any Perplexity.ai page. The loader fetches and runs the latest main script automatically.
- Optional: In the Tampermonkey menu, click "Reload Perplexity Full Width (fetch latest)" to force a refresh.
- Install the main script:
https://github.com/IanWardell/TamperMonkey-Perplexity-Full-Width-Tables/raw/refs/heads/main/perplexity-full-width.user.js - Direct installs do not auto update. Reinstall to get new versions later.
- Open a Perplexity.ai answer that renders tables.
- Open the DevTools Console and confirm you see log lines prefixed with
[PerplexityWide]. - Resize the window. Tables should fill the available width and scroll horizontally when needed.
- The main script has a DEBUG toggle near the top:
const DEBUG = true;. - With DEBUG enabled, the console shows detailed messages with the
[PerplexityWide]prefix. - To temporarily disable the script, toggle it off in the Tampermonkey dashboard without uninstalling.
- Installer script:
- Uses
GM_xmlhttpRequestto fetch the latest code from GitHub. - Requires
@connectforraw.githubusercontent.com,githubusercontent.com, andgithub.comto allow fetching updates from GitHub.
- Uses
- Main script:
- Uses
@grant none. - Does not make network requests or collect data.
- Uses
Most breakages occur when Perplexity updates class names. Always check the "Scope and selectors used" section first.
- Force reload the page with cache bypass:
- Windows:
Ctrl+Shift+R - macOS:
Cmd+Shift+R
- Windows:
- Make sure the script is enabled in Tampermonkey and runs on
*://*.perplexity.ai/*. - If elements still do not stretch:
- In the Console, confirm
[PerplexityWide]logs appear. - Paste the following in the Console to check whether the targeted selectors exist:
document.querySelectorAll('div.group.relative, div.group.relative.flex, .min-w-full, .min-w-0, .gap-sm.grid > .min-w-0, .line-clamp-1').length - If the count is 0 or unexpectedly small, Perplexity may have changed CSS classes.
- In the Console, confirm
- When reporting an issue, include:
- Example URL, steps to reproduce, browser version, Tampermonkey version
- Console output with DEBUG enabled
- A screenshot of the relevant DOM structure if possible
The script currently adjusts width and overflow on:
div.group.relativediv.group.relative.flex.min-w-full.min-w-0.gap-sm.grid > .min-w-0.line-clamp-1
These class names are subject to change by Perplexity. Breakage is most likely when the service renames or restructures its grid wrappers or table containers.
- Semantic Versioning:
- MAJOR for breaking changes in behavior or configuration
- MINOR for new features and selector expansions
- PATCH for fixes and non-breaking tweaks
- Installer users get new versions automatically.
- Direct install users must reinstall to pick up updates.
- Tampermonkey Dashboard > locate the script > either:
- Toggle the switch to disable
- Click the trash icon to remove
- The main script does not send network requests and does not log or transmit user data.
- The installer only fetches the code from this GitHub repository.
- Open issues with:
- URL and steps to reproduce
- Browser version and Tampermonkey version
- Console output with DEBUG enabled
- Screenshot or snippet of the changed DOM if known
- Pull requests should:
- Keep the logging prefix consistent:
[PerplexityWide] - Avoid adding dependencies
- Include a brief note in the changelog
- Keep the logging prefix consistent:
This project is licensed under the MIT License.

