Back to projectsAutomation script

Perplexity AI Enhancements

Small Perplexity userscript suite focused on faster thread management and wider chat layouts for long reading sessions.

Context

This portfolio entry groups two focused Perplexity scripts: one for keyboard-driven thread deletion and another for expanding the chat width for easier reading.

Problem

Perplexity's default UI makes some repetitive actions slower than they need to be, especially deleting threads and reading long responses in a narrow content column.

Solution

One script adds a keyboard-only deletion flow with confirmation and cancel states, while the other injects lightweight CSS to remove width restrictions and make long answers easier to read.

Key decisions

  • -Kept each script tightly scoped instead of combining unrelated behavior into one large userscript.
  • -Added a safe confirmation step for deletion so the keyboard shortcut does not become destructive by default.
  • -Used CSS injection for the layout script to keep the performance impact minimal.

Key features

  • -Delete-key thread removal flow with Enter to confirm and ESC to cancel
  • -Selector updates for reliability with Perplexity UI changes
  • -Full-width chat layout for long responses
  • -Responsive spacing adjustments with lightweight CSS injection

Results

  • -Improves both speed and readability in a tool built around long-form AI conversations.
  • -Shows good judgment in shipping two narrowly useful scripts instead of one noisy bundle.
  • -Adds another example of keyboard workflow design in browser automation.

Stack

JavaScriptTampermonkeyAI Platforms

Links