Comment by [deleted] on 05/12/2019 at 18:28 UTC

4 upvotes, 2 direct replies (showing 2)

View submission: Why did I build AmputatorBot?

[deleted]

Replies

Comment by Killed_Mufasa at 13/12/2019 at 00:40 UTC*

1 upvotes, 0 direct replies

I've just released a new tool where you can easily do this: www.amputatorbot.com! Check the announcement post here: https://www.reddit.com/r/AmputatorBot/comments/eb6uwi/introducing_wwwamputatorbotcom_remove_amp_in_just/

Comment by Killed_Mufasa at 10/12/2019 at 15:46 UTC*

1 upvotes, 0 direct replies

EDIT: https://www.reddit.com/r/AmputatorBot/comments/eb6uwi/introducing_wwwamputatorbotcom_remove_amp_in_just/[1] - www.amputatorbot.com is now live!

1: https://www.reddit.com/r/AmputatorBot/comments/eb6uwi/introducing_wwwamputatorbotcom_remove_amp_in_just/

Unfortunately, that isn't easy. Sometimes it is, but more often, it really isn't. On mobile, you can (but only sometimes) click the little icon in the top right to get the link to the original page. Since Google doesn't provide an easy way to remove AMP from links, we got to do it ourselves.

The bot is able to find the correct link. How am I supposed to do that?

Long story short, the bot scans the HTML file of the website, in particular for the `canonical` parameter in the HTML tag `<a rel="">`. So if you want to find the correct link, you would have to inspect element and search for the canonical link yourself, it should look something like this: `<link href="https://example.com/link-to-canonical-source.html" rel="canonical">`.

But that's quite a hassle, so I've made a post where you can comment the AMP link: https://www.reddit.com/r/AmputatorBot/comments/e8rx8r/remove%5C_amp%5C_from%5C_your%5C_links%5C_here/[2][3], the bot will show up and provide you with the clean version.I'm also working on a website that would allow you to convert AMP links. Also, I'm working on a feature where you could PM u/AmputatorBot[4] with an AMP link and it would reply with the amputated version. That said, I need to do some research into the question whether or not bots are allowed to PM links and the website won't be online until the end of the month. So stay tight ;)

2: https://www.reddit.com/r/AmputatorBot/comments/e8rx8r/remove%5C_amp%5C_from%5C_your%5C_links%5C_here/

3: https://www.reddit.com/r/AmputatorBot/comments/e8rx8r/remove_amp_from_your_links_here/

4: https://www.reddit.com/user/AmputatorBot