A Bookmarklet to Copy Codex Assistant Replies and PR Messages to Your Clipboard
dev.to·1d·
Discuss: DEV
🟨javascript
Preview
Report Post

Overview

The content describes a JavaScript bookmarklet designed for the Codex web UI. Its purpose is to collect text from a Codex task—specifically assistant responses and pull request (PR) messages—and present them in a simple on-page overlay where each item can be copied to the clipboard with one click.

Instead of manually selecting text across multiple turns, the bookmarklet automatically finds the relevant task data in the page, extracts textual content, formats PR messages nicely, and then provides a compact “copy list” interface.

What the Bookmarklet Extracts

The script builds a list of Markdown-like text snippets from the task’s turns:

Assistant and User Message Text

For each turn, it inspects the turn’s items:

  • If the item is a message, it walk…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help