Hacker News new | past | comments | ask | show | jobs | submit login

You can also just disable javascript for the website.



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




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: