Hacker News new | ask | show | jobs
by markwakeford 2380 days ago
You can also just disable javascript for the website.
2 comments

Unfortunately, the popular graphical browsers AFAIK do not allow the user to disable CSS. Other news sites that use AMP, such as WSJ, use CSS as well as Javascript to annoy the user. Disabling Javascript is not enough. It is possible to remove the offensive CSS from a page through the browser's developer console, developer tools, etc. but at that point we may as well use a browser extension.

Here is a filter for WSJ.

   sed -n '/<article/,/<\/article/{/./{/<h1/,/<\/h1>/p;};/<title>/,/<\/title>/p;/./{/<p>[^<]*/,/<\/p>/p;};}' a.htm
This is what you get if you block javascript for www.bloombergquint.com: https://i.imgur.com/LrPYVmq.png