Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm amazed at how many adds this page has. (Had to turn off my adblocker to get the page to load)


Maybe try something like this, if adblocker is failing

    1. curl -o 1.htm http://www.electronicdesign.com/embedded-revolution/ryzen-boards-reign-embedded-world-2018

    2. sed -i '/<p>/,/<\/p>/!d' 1.htm

    3. firefox file:///1.htm


What is the purpose of the sed?


Specifically, it modifies the file in place (-i), Matches lines between paragraph tags(/PatternStart/,/PatternEnd/), Then, doesn't delete those lines matching the pattern range (!d), which has the effect of deleting all other lines outside the pattern range when passed the in-place argument.


Being partially sed stupid myself (or just plain stupid), I think its supposed to pull only the text between paragraph tags and save that to an htm file; then launch firefox and display that file, giving you only the pertinent text of the article (sans ads)


Remove Javascript and links to Javascript files that load ads, etc.

Preserve only the desired content: text describing the boards, links to manufacturers websites, links to images.


Looks like it is deleting everything not contained in paragraph tags.


Loaded perfectly with Firefox and uBlock Origin for me.


Ditto Chrome and uBO.


I use Safari and uBlock (not origin)


Yeah uBlock non-origin is abandoned (there have been 4 commits in the last 2.5 years). It's also no longer available in the Safari Extension Gallery. There is a fork of uBlock origin for Safari: https://github.com/el1t/uBlock-Safari - I use Linux so I can't vouch for it, but gorhill (author of uBlock origin) links to it in the readme so it's semi-official.


Blank grey page for me, without an ad-blocker.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: