Amplosion is an iOS 15 and greater app that automagically redirects AMP links to their normal counterpart. AMP links can be super annoying, so this helps make your web browsing experience a bunch more delightful.
Why Open Source ?
How it Works ?
Amplosion is a Safari extension. Once enabled, when the page loads, Amplosion checks if the current page is an AMP page, and if so, reads the page headers to find the “canonical” (AKA normal) link, and redirects the browser to that page instead. Amplosion prefers the “All Websites” permission so that it can, well, fix AMP pages on any website!
content.js file does the majority of the heavy-lifting in terms of redirecting away from AMP. The
background.js file and the
SafariWebExtensionHandler.swift file act as communication layers with the main app (enabling you to add items to your Allowlist, if you so choose, for instance). Lastly the
popover* files are the “UI” for the extension when you select them in Safari, showing you the current page’s stats and the ability to add it to the Allowlist.
If you have any questions or suggestions, feel free to open an issue on GitHub, or hit me up on Twitter @ChristianSelig.