You copy
Whatever just landed on the clipboard.
{"name":"AlterPaste","status":"active"}
AlterPaste lives in the menu bar.
You copy. It rewrites the clipboard. You paste.
Whatever just landed on the clipboard.
{"name":"AlterPaste","status":"active"}
Formatted
{
"name": "AlterPaste",
"status": "active"
}
Copy as usual. If a rule fits, AlterPaste offers you a rewrite before you paste.
Same as always. From a browser, a terminal, a Slack message.
It notices, rewrites the clipboard, and leaves the rest of your Mac alone.
The cleaned-up version is already there.
Each transformation is a JavaScript rule you write. You decide what matches and what it becomes. There is an editor in Settings.
function isMatch(content) {
try {
JSON.parse(content.trim());
return true;
} catch {
return false;
}
}
function transform(content) {
return JSON.stringify(JSON.parse(content), null, 2);
}
AlterPaste runs on your Mac. Copied text is not uploaded. There is no account.
Rules run on the machine in front of you.
Download it and use it. Nothing to sign up for.
What you copy stays on your Mac.