Show HN: Text Mode – View the web in Content-Type=text/plain
earthly.dev
earthly.dev
Most of my web browsing is reading text, so I wondered about stripping webpages down to plain text. I showed it to my boss at work and he suggested putting it up somewhere as a tool for people to use.
There is no caching so its a bit slow to load.
There are examples in the blog post, but try loading a new yorker article like this:
https://earthly-tools.com/text-mode?url=https://www.newyorker.com/news/letter-from-silicon-valley/the-lonely-work-of-moderating-hacker-news
Or read it right in your terminal: curl https://earthly-tools.com/text-mode?url=https://www.newyorker.com/news/letter-from-silicon-valley/the-lonely-work-of-moderating-hacker-news | less
Unfortunately, there are no links, so browsing around isn't great experience but reading is.Next thing I need to add is caching, because some pages are just really slow and text should be very cacheable.
Also, on my phone I need to use widescreen mode to make it viewable the line breaks are in the content and not reactive to browser size.
Feature requests?
I strip away all the bells and whistles, keep the main text, fix the img and a links with absolute links, and apply minimum styling.
I also cached all the results and built a full text search index with it.
It makes me feel like I'm reading a text file on some BBS or something.
But what you've built is very cool.
https://earthly-tools.com/t?u=
But any shorter than that would require a url shortener, or a different domain name. Do any url shorteners support adding url params onto the end of them?* Character set, if you want to convert to ASCII, or other character encodings that the document to be converted might use.
* Option for including links (possibly in footnotes, and/or section numbers for links to other parts of the same document).
* Option for to find any <link rel="alternate"> in case there is already the plain text version (but you can also disable it if you want to force converting the HTML instead). (This seems unnecessary for the remote service, but if it has it then it might be useful when using locally)
Is good that you have the source codes, though. You might want to run it locally, instead of having to use the remote service to make such a conversion.