Back to projects

Browser userscript

Twitter/X One Click Delete

Made with Qwen 3.6 in Hermes Agent. A small userscript that adds a direct delete button beside the normal Twitter/X post actions, opens the post menu, confirms deletion, and shows a compact status toast.

Twitter/X post preview showing Cheli Jenardi and the one-click delete button.

What it does

The script scans rendered Twitter/X posts, places a trash button near the action controls, and runs the same delete path a user would normally click through manually.

How to use it

Install it with a userscript manager such as Tampermonkey, open Twitter or X, and use the trash button on posts that can be deleted from your account.

Inline delete

Adds a clear trash button beside the normal post actions.

Confirmation flow

Finds the menu delete action and confirms the dialog when available.

Timeline scanning

Uses DOM observation and periodic checks for newly rendered posts.

Status toast

Shows short feedback when deletion succeeds or when a control is missing.

Install target

The userscript runs on twitter.com and x.com after the page becomes idle.

// @match https://twitter.com/*
// @match https://x.com/*