Hacker News new | ask | show | jobs
by alenros 3296 days ago
Wrote down this Tampermonkey\Greasemonkey script that would do the job of automatically redirecting you to the original content. can also be obtained from [0]

// ==UserScript== // @name Un-AMP // @namespace http://tampermonkey.net/ // @version 0.1 // @description avoids google AMP links and navigates to the original content // @author Alenros // @match https://www.google.co.il/amp/* // @match https://www.google.com/amp/* // @grant none // ==/UserScript==

window.location.href=document.getElementsByClassName("amp-canurl")[0].textContent;

---------------

[0]https://github.com/alenros/Un-AMP

1 comments

Does it work on mobile?
Yes - if you have one of these extensions installed. Tampermonkey even has an application for Android.