Amputator

Amputator helps subreddit moderators reduce AMP links in their communities. When someone posts a comment or post with a supported AMP URL, Amputator can reply with a cleaner canonical link.

What AMP Links Are

AMP links are alternate versions of web pages that often route readers through an extra cache or proxy layer before they reach the original publisher. They can make links harder to inspect, share, archive, or moderate.

Amputator looks for common AMP patterns and converts them into cleaner canonical candidates.

What Amputator Does

  • Scans new comments and posts.
  • Scans edited comments and posts, so AMP links added later can still be caught.
  • Replies with canonical link candidates when the default action is enabled.
  • Can report AMP links for moderator review instead of replying publicly.
  • Can run in log-only mode for dry runs or quiet testing.
  • Avoids duplicate action on the same post or comment.
  • Provides a moderator-only Check AMP links menu action for manual scans.

Replies

For one AMP link, Amputator replies with a compact canonical link:

I found an AMP link in this comment.

Canonical link: <https://example.com/story>

For multiple AMP links, it replies with a short list:

I found AMP links in this post.

Canonical links:
- <https://example.com/story>
- <https://example.org/article>

Moderator Settings

Moderators can configure Amputator per subreddit.

Scan new comments : Enables or disables automatic scanning for newly submitted and edited comments.

Scan new posts : Enables or disables automatic scanning for newly submitted and edited posts.

Action when AMP is found : Chooses what Amputator does when it finds supported AMP links.

  • Reply with canonical links: posts a public app reply with cleaner links.
  • Report for moderator review: sends the item to the mod queue with a short AMP report reason.
  • Log only: records the match without replying or reporting.

Maximum links per reply : Limits how many canonical links Amputator includes for a single post or comment.

Ignored authors (comma-separated) : Skips posts and comments from listed users. AutoModerator is ignored by default.

Extra domains to ignore (comma-separated) : Skips links from additional domains chosen by moderators. This is useful for sites where AMP-like paths are expected or where a community does not want Amputator to act.

Manual Checks

Moderators can use Check AMP links from a post or comment menu. Manual checks use the same configured action as automatic scanning.

If an item was already processed, Amputator will not act on it again.

Supported AMP Patterns

Amputator recognizes common AMP forms, including:

  • Google and Bing AMP redirect paths.
  • AMP cache URLs.
  • AMP query parameters such as amp, amp_js_v, output=amp, and usqp.
  • AMP path markers such as /amp/, /amphtml/, .amp, and -amp.

Amputator skips uncertain low-confidence cases instead of posting risky guesses.

Credits

Amputator is a Devvit port of AmputatorBot, the original Reddit bot created by Killed_Mufasa to replace AMP links with canonical URLs.

Built With

Share this project:

Updates