########################################################################################## FKAMP-1: Create functionality to block AMP pages ########################################################################################## Issue Type: New Feature ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2018-02-15 15:58:38) Project: Anti-AMP Scripts (FKAMP) Reported By: btasker Assigned To: btasker Targeted for fix in version: - V1.1 - v1.2 - v1.3 Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== I really, really, hate AMP pages. They serve no useful purpose to me, and are often lacking functionality that I actually use. Also none-to-happy about the number of AMP sites that are hosted directly by Google. Unfortunately, there _still_ isn't a way to globally opt out of AMP for all sites (and Twitter have now taken to directing links to the AMP version automatically). The aim of this issue is to create a ruleset for ABP/Ublock Origin which blocks amp.js and other dependancies in the hope that most pages should then react by redirecting you to the canonical URL. Whilst it'd probably be possible to achieve the same with Greasemonkey (by detecting the canonical and going there instead), that's not really a useful option on mobile ----------------------------------------------------------------------------------------- Issue Relations ================ - relates to FKAMP-2: Anti-Amp Script doesn't work on Google's AMP cache - RemoveAMP Greasemonkey script (https://github.com/bentasker/RemoveAMP) ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2018-02-14 14:26:03 btasker ----------------------------------------------------------------------------------------- Initial test URL is this - https://www.theregister.co.uk/AMP/2018/02/14/kaspersky_us_ban_legal_fight/#click=https://t.co/R2wN7H4fpH (taken direct from Twitter) Within the response, we can see the callout to ampjs -- BEGIN SNIPPET -- -- END SNIPPET -- So to begin with, let's blacklist cdn.ampproject.org in ABP. Unfortunately, that doesn't help. Though the URL https://cdn.ampproject.org/v0/amp-ad-0.1.js can be blocked in either case, bad enough getting AMP, buggered if they're going to serve me ads at the same time ----------------------------------------------------------------------------------------- 2018-02-15 12:37:06 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: RemoveAMP Commit: ae976766087bef361bd07b462a3d26658a9ddda3 Author: Ben Tasker