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

purely by running (malicious) JavaScript inside the victim's browser

I've said it many times and I'll say it again: keep JS off by default and enable it only for the few trusted sites that absolutely need it. Interestingly, the authors mention disabling 3rd-party cookies as a countermeasure, but not JS.



Agreed. Surf makes that easy, CTRL-SHIFT-S to enable JS for the current page. It's downright annoying when I use another browser now. Ditching JS makes everything faster.

http://git.suckless.org/surf/log/?h=surf-webkit2

I have modded it a bit: https://github.com/jakeogh/glide (not well tested)


Is there a chrome plugin for that? activate JS with a key binding and automatically refresh the page.


Not sure. There's a FF plugin: https://addons.mozilla.org/en-US/firefox/addon/yesscript/?sr... and if you disable JS by default it's a quick way to enable it per domain.


Yeah, tried that a bunch of time only to find it sooo annoying that I go back to JS. It's just not worth it clicking on "enable JS" for every new page you open.


It's not that simple, browser vendors don't really want you to do that. Google even outright sabotaged such behavior in chrome some time ago. You had to type in url masks manually to enable javascript for trusted sites.


Huh? Per-site Javascript is controlled through the site permissions UI like everything else in Chrome-- that's the popover that comes up when you click the page or lock icon in the address bar.

There's even an icon that appears on the right side of the address bar when Javascript is blocked, giving the option to add an exception if clicked.


You probably don't use chrome with disabled javascript, so you haven't noticed the change. It was broken on purpose for a couple of months.


that will break the Internet.


The internet is not javascript, no matter how hard everyone tries to pretend it is.


I argue JS broke the internet. Executing a provided program to read content mixes the layers in a anti-user way.


I'd argue JS drove the internet to its present state.




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

Search: