533 points · by wglb · 5y ago · 125 comments
It's hard to trust the smaller browsers to keep me private online if there isn't something that gives me that same level of control over blocking. And there's a huge adblocking community built around this software that maintains lists, fixes websites, and it's just a bunch of privacy-focused community effort that is hard for any small team to replicate.
But aside from webextension support, Nyxt looks really exciting, and I'm glad that people are building browsers that are actually innovating in this space.
It's a really compelling project, with webextension support I could easily see myself moving over to a scriptable browser built on something like Servo.
To get to the point where I would feel comfortable having my OS handle browser blocking, a reasonable chunk web browser functionality would need to be moved out of the browser and onto the OS. I just don't see that happening any time soon, and I'm not sure that's the direction we would want to move with browsers anyway.
Ublock Origin will do things like stub Javascript methods on the page. A Piihole can't do that. And even for simple things like blocking requests based on the current domain -- the movement towards DoH and SNI are going to make that harder and harder as time progresses. You really need an interface that has insight into not just what requests you're making, but where/why you're making them.
Not to say that system wide blockers don't have value, but they're really there for the apps that can't handle their own adblocking. They're a defense in depth for the requests that slip through other parts of your setup, but they're not a good replacement for a browser extension.
It can be used as an adblocker based on domain, request path, HTTP headers, etc, but it can do much more. It can redirect requests (for example, replacing assets from a CDN with a local cache), modify headers (stripping or making cookies temporary, changing user agent, etc.) and even rewrite the content of web pages using regular expressions or any external program.
By default, it has only a basic configuration that blocks tracking and ads, but there are tools[2] that convert adblock rules to the Privoxy format, so it will be functionally equivalent to adblock.
It acts as a CONNECT proxy, so you can run it locally or on a router and if combined with a NAT rule, it can also work transparently (obviously, you need to manually trust a CA certificate for https).
Also uBlock Origin lets you block any HTML element on any site. This lets you (interactively!) cut out autoplaying videos, annoying popups and basically anything that you as an individual user find distracting.
Or how about the option to block loading of large images? Try implementing that system wide without accidentally breaking certain requests using `curl` and while still allowing the user to flip that switch in seconds.
There's no single abstraction layer where it makes sense to do everything at once.
Get everyone to add a cname or rotate the domains.
If they use the main domain and proxy the requests, you can’t block the domain without breaking the site.
That’s why there are lists that operate on selectors and the content on the pages too.
Gemini is a project that actually attacks the root of the problem by presenting an extremely stripped-down hypertext format and giving an alternative at the protocol level.
i highly recommend checking out Gemini https://gemini.circumlunar.space/docs/faq.gmi and the Lagrange Browser https://github.com/skyjake/lagrange if you find this interesting.
at least for my circle, there's a consensus that the web has calcified and become such a walled garden that we've reached a time where it makes sense to "start over" at a pretty base level; rather than trying to build on top of a platform that, by its nature, inevitably tends towards centralization and capitalization.
There's nothing "fundamental" about web bloat.
Here's a simple litmus test for Gemini: take a look at a few of the personal websites for people who've spoken highly of Gemini. How many of them have exercised restraint and eschewed with all the sorts of things that Gemini disallows? How many of them have embraced features of the Web that are not permitted in Gemini?
> rather than trying to build on top of a platform that, by its nature, inevitably tends towards centralization and capitalization
If we take it for granted that it's true of the Web (and that's being generous), why is Gemini going to fare better?
These all seem like a bunch of vague and empty talking points for a piece of tech who's main catalyst for coming into interest and capturing attention comes down to NIH, and not actually any fundamental correctness about its nature.
I assume a lot of the potential "early adopters" for any new browser are privacy/security focused and as neat as it is conceptually that's going to be a steep climb for any new project.
It's also doing CNAME uncloaking, request rewriting, stubbing functions in pages, it has syntax to handle CSS changes, it has rules that allow requests to only go through in certain contexts or if they're originating from certain domains. And most importantly, there's a giant community of people basically standardized on Ublock Origin who maintain all of these lists and who are constantly identifying new threats and proposing new features.
So a competitor to Ublock Origin would need to be constantly competing with it, it would need to be pulling in new features as they got released, and it would need to be consuming the same lists that Ublock Origin uses. It's just really hard to keep pace with that.
If Mozilla came out tomorrow and said they were going to do native adblocking, I would trust them less than Ublock Origin. I don't think even they would be able to keep pace if they were trying to build a community from scratch.
Sadly, I doubt that'll ever happen with the amount of funding they get from Google.
For example, my last browsing session only became unusable (16GB RAM + 8GB swap 100% used, machine OOMing renderers, system freezing for about a minute or two at a time) after I reached about 1,081 tabs.
:(
I find it a huge pity that tab serialization never went anywhere :'( https://developers.google.com/web/updates/2015/09/tab-discar... it would basically have let you have 10,000 tabs open
I'd love to work on a quick tab group freeze feature. (a 2d graph to order / select and then stash the tabs dom without external resources maybe) ?
Nyxt browser: mouseless copy/paste - https://news.ycombinator.com/item?id=25956152 - Jan 2021 (56 comments)
Nyxt Browser 2.0.0 Pre-release - https://news.ycombinator.com/item?id=24353927 - Sept 2020 (11 comments)
Not exactly Nyxt (which looks amazing), but that people are are starting to "emacs" the web. There's a social process whenever humans make a thing where we rumble around a lot and try different things and eventually we settle on a kinda-ok-for-now-if-I-can-make-some-adjusments thing (like how I just used written english).
I'm a little skeptical (for me) that we've arrived at a 'durable state' for the web. I think it may change a little too quickly for it to make sense (for me) to invest time into learning this particular browser but I am very excited about the trend.
Edit: I wrote this comment without even seeing that they support list but of course they do.
I seem to recall that web pages were steadily making it harder for it to work. E.g no "a href" or "link rel"s.
Here's hoping that Nyxt will have success in bringing this era back!
BTW, "go to next/prev page" would also look for user-configurable strings inside. So you could define the strings from DOM on pages that you often visit and indeed you would breeze over those pages then. Useful on discussion boards etc.
And oh and the built-in and configurable ultra-powerful mouse gestures...
NextPlease! was the name of the Firefox extension I think.
On first load you have a tutorial, and a menu to select the session. There's only one session so it should default to that. There is no way to click the menus like there is in Emacs, so I have to type Default in full each load.
Running "vi-normal-mode" doesn't switch the keybindings, and it only runs on new buffers, not old ones. It would be nice to have a "global mode" feature.
Futhermore, n and N do not work for searching in vi mode, and it would be nice to have "?" bound to the help buffer, simply because half the time I can't remember what key switches to which buffer. There should also be autocomplete on tab, like doom emacs has.
All in all, it feels half-baked, in it's current state, which I guess it is. I'll be happy to use it more when it's in a better state, but I don't think it'll be replacing Firefox any time soon
- You can press `enter` instead of typing "default" in full if it's selected. - Running `vi-normal-mode` enables VI bindings in the current buffer only. If you want to enable them everywhere, you can use the graphical confiuration menu that's presented on startup.
- `tab` inserts the current selection in the input. Do you mean something else?
> - `tab` inserts the current selection in the input. Do you mean something else?
In emacs (specifically ivy/helm), tab in context-sensitive. Using tab on a command input autocompletes that input, where elsewhere it behaves differently. There doesn't actually seem to be a nice way to select from the command lists given (like the session selector) without typing it in, and that means I have to type it in in full, which is awkward and cumbersome.
One final note is I just tried using it again -- first problem is duckduckgo.com does not load, I just get a blank page after it says "finished loading". The other is that the default key of 'd', I had assumed would close the buffer, but I guess that must be 'x' because it closed the entire window, which I would have expected from 'q'.
If duckduckgo does not load, maybe you enable noscript-mode, proxy-mode or similar? Try starting the browser with `nyxt -I` (no config file). Do other HTTPS site work?
`d` is not bound by default.
To see the full list of commands and bindings, press `Ctrl+space`, it will display them all.
No uBlock Origin is not a deal breaker for me. Even with ubo on and JavaScript blocked the web is bloated as hell. I feel bad for all the folks who work on these projects because they need to deal with the same comments over and over again. That doesn't help the project.
So, hats off to Nyxt.
This part is cool:
> Nyxt is web engine agnostic. We utilize a minimal API to interface to any web engine. This makes us flexible and resilient to changes in the web landscape. Currently, we support WebKit and WebEngine (Blink).
Does this browser have anything do to with Next? The logo seems similar.
What rendering engine did they choose? Or is it possible to switch between them?
1. It just has bad KHTML forks for the engine. What about Gecko and Presto and Trident all the other fine renderers?
2. I don't know what kind of lisp they're using (probably Common Lisp), anyway it's not my favourite kind.
well, given the emacs-nature of this project maybe someone will come up with a mini-transpiler so that one may use their favorite lisp.
It even uses the same terminology with words like “buffers” instead of tabs.
Is this actually an Emacs-based browser being shipped to the masses?
Qutebrowser also has link hints as a standard built-in feature.
I am using Tridactyl on Firefox which has many of these keyboard navigation features. I tried using qutebrowser (a bit more like nyxt) but I stick with Firefox for the password manager integration and easy installation on all platforms. Also Ctrl+Tab on Firefox switching between most recently is what I want most of the time.
But POSIX users would love games!
It’s just such a low priority because it would be a very low percentage of total users.
I could add that my own experience of supporting developer workflows on Windows/MacOS and Linux is about 3x more complicated than it needs to be because of Windows. :(
It has been reported to run on Windows via WSL and also without it, but it needs much more work because WebKitGTK is not trivial to get to run on Windows.
Contributions are welcome!
I've never used Common Lisp how common is it (heh heh)? I really enjoyed hacking around in Clojure, so I may have to pick it up. I'd love to hear from anyone who's done serious Common Lisp work. Why'd you choose Common Lisp vs any alternative?
I can redefine a function without restarting, and then get assembly level profiling of a benchmark faster than a typical C++ program can link.
Most of the features that made lisps unique when I started learning lisp have been adopted by modern languages, but the debug tooling and dynamicism in a compiled language are both rare.
I was lucky enough to get it in one of the programming Humble bundles a while ago.
$ tar xf nyxt-*.tar.xz -C nyxt
$ du -chs nyxt
1.7G nyxtNyxt alone is about 100-150 MiB uncompressed, which is what it costs you if you install it via your package manager.
About the .deb: Indeed, it's built on Ubuntu, so it's not guaranteed to work on Debian, which is why we didn't mention it.
Very excited at the idea of having fast fuzzy switching of tabs. I wish more things operated like that.
So much space needed for a "lightweight" browser
It's not really a surprise that gecko isn't the primary choice for browser developers.
However, I think that regular browsers like chrome/firefox are better in that they offer 99% of customizability at 1% of the effort one would have to spend to configure nyxt. There are extensions that let you inject javascript into a website. You can do a lot with that. Not to mention that mice are very well suited for browsing web.
Edit: Typo
Remember Firebug (which lives on today as developer tools in every browser) used to be just an extension(!) back in the day.
0: https://handsfreecoding.org/2017/11/22/extensions-now-availa...
https://github.com/atlas-engineer/nyxt/blob/master/documents...
It's mentioned there that it uses SBCL, which is a full, standard and extended implementation of Common Lisp.