3 ms·
It's apparently a pretty controversial position to have now, but I'll say it again: Leave JS off by default. Whitelist sites that absolutely need it. Running c
by userbinator 9y ago
It's apparently a pretty controversial position to have now, but I'll say it again:
Leave JS off by default. Whitelist sites that absolutely need it. Running completely untrusted foreign code on your hardware has been, is, and likely will continue to be a source of security problems.
As a bonus, you get to enjoy much faster-loading, nearly ad-free and cruft-free pages on almost every site. Now couldn't be a better time to try it out.
- thisacctforreal 9y agouMatrix is a wonderful way to do this :) It has a small learning curve if you understand a bit of how the web works.
- paulryanrogers 9y agoA centralized, auto synced, cross-browser whitelist would be nice. Of course everyone's individual lists would be different.
- madez 9y agoI'm astonished at how fast websites are without JavaScript. I just turned it on today to make an order on EBay and I was immediately annoyed by how slow and sluggish it was. Why aren't there programs to buy stuff on the internet? There are some other minor pain points though. Why can't I collapse comments here on HN without JavaScript? There are more examples of minor issues that seem to be completely solveable by a statically defined markup language. Mozilla, where are you when we need you? Allowing JavaScript only on certain sites is not a good solution. First, it leads to unfair conditions and thus centralization. Second, the appification of the web including it's consequence of ever increasing dependency on certain software that is outside of the control of the users continues.
- pdkl95 9y ago> Why can't I collapse comments Features like this could easily be a declarative feature in HTML. e.g. something like: <div class="comment_wrapper"> <action type="show,hide" for="foo"> <img ...> <!-- or whatever --> </action> <div id="foo" class="comment"> ... </div> </div> Unfortunately, development of new HTML features like this mostly stopped when a major browser developer decided to try to fight with Microsoft for the desktop/mobile markets by changing webpages into software.
- odammit 9y agoYou don’t even need that. You can work some magic with CSS to hide/show and even rotate/flip elements using inputs. > input:checked + div { display: none; } Some people don’t like that either though. :/
- _delirium 9y agoYou can use the <details> tag for that: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details https://developer.mozilla.org/en-US/docs/Web/HTML/Element/de...
- lousken 9y agoI've been doing it for more than a year, first two weeks were very painful and I've almost regret doing it. However it has become a lot better after I established long enough whitelist and put my fixes in place. Only thing which I'm missing is to run my custom scripts on page I disable javascript on. I am able to fix quite a bit with stylus but not everything. Also it's so weird to me that firefox which cares about privacy(?) doesn't have domain js blocking like chrome does and I have to use 3rd party addons.
- sigmar 9y agoI've had JS off for non-TLS sites for a while. Any site that wants to run JS should have the chops to know how to set up a cert. and my machine shouldn't be running JS that could have been MiTM'd
- hendersoon 9y agoYou will get extreme page damage leaving javascript off on every site. If you're willing to deal with the micromanagement that's great, but it isn't the right answer for most people. Instead, I recommend using uBlock Origin in "medium mode". Medium mode allows first-party scripts to run but blocks all third-party scripts by default. In medium mode, around 75% of pages work without any additional finagling and the others can be fixed by enabling selective script sources only on that specific host. I find it a reasonable middle-ground. https://github.com/gorhill/uBlock/wiki/Blocking-mode:-medium-mode https://github.com/gorhill/uBlock/wiki/Blocking-mode:-medium...
- pmontra 9y agoThat's the default behavior of uMatrix, which also lets the user select what to do with the other scripts. I use both, uBlock Origin for ads and hiding parts of the page (the latter especially on mobile: fixed menus), uMatrix for scripts. I used NoScript but the new post Firefox 57 interface became more complex than the one of uMatrix so I jumped ship. It's not so hard after all if one is a web developer. If not, maybe uBlock medium mode would be ok but do you have non developer friends using it in that way?
- hendersoon 9y agoNon-developer friends certainly, non-technical ones not so much. If that's all you use uMatrix for, you can remove it and get all that functionality with uBlock Origin alone.