News for hackers. Stuff that matters.
Re:A remotely operated vehicle livestreaming the deep sea by pavel_lishin on Wednesday May 10, 2017 @06:12PM (#14312212)
Something like that sed script would be nice to pipe all of my browsing through, before it ever hits Chrome.
Re:A remotely operated vehicle livestreaming the deep sea by 10165 on Wednesday May 10, 2017 @06:37PM (#14312363)
If you are serious and you want a script like this for any given page that you want de-crufted and reformatted, let me know. This applies to any HN reader.

I make these for myself all the time.

I do one-offs in sed and if it is something I will reuse I redo it in C using flex.

If you want something generalized to all web pages that removes google analytics, doubleclick, scorecardresearch, etc. of course that is possible too. I am happy to make this for anyone who wants it.

Another solution is to run a proxy on your computer that filters out garbage. Such proxies used to be more popular when advertising began to take over the web, but most of these projects seem to have been abandoned and forgotten (junkbusters, etc.).

Nowadays it seems like people try to accomplish this via Javascript running in the browser.

Turning off Javascript is also highly effective at disabling advertising. But note this may not stop things like img src tags pointing at tracking pixels, malicious iframes, and other elements that graphical browsers will load automatically.

Also, tcp clients do not normally store or send cookies. And even if they try to provide this functionality, e.g., curl or wget, unlike a graphical web browser, cookies are off by default. Consider the case where the user retrieves the page with a tcp client and then views it in a browser.

Re:A remotely operated vehicle livestreaming the deep sea by j_s on Wednesday May 10, 2017 @10:28PM (#14313469)
λmegous | https://news.ycombinator.com/item?id=13226170

For each use case that is not a free browsing I create an electron app, that never executes any code from the web or uses any external style. It only uses XHR to fetch html pages/json data/other static stuff and then transforms that data and uses it in the custom UI designed for the use case.

Re:A remotely operated vehicle livestreaming the deep sea by pavel_lishin on Thursday May 11, 2017 @09:34AM (#14315851)
> Another solution is to run a proxy on your computer that filters out garbage.

That's what I was thinking; a proxy server that can run on a pi. Plug it into the wall, configure wifi, connect to it, and bam - instant safety. (Assuming you trust the code.)

Re:A remotely operated vehicle livestreaming the deep sea by milcron on Wednesday May 10, 2017 @07:00PM (#14312512)
>Nowadays it seems like people try to accomplish this via Javascript running in the browser.

I filter out lots of cruft by doing the opposite - using NoScript to block extraneous junk.