News for hackers. Stuff that matters.
Re:Please disable JavaScript to view this site by tempestn on Saturday November 28, 2020 @07:34PM (#25241876)
I must say, I don't understand the disable JS movement. I browse with JS on, and uBlock Origin to block ads. It's rare that I have any javascript-related problems in my web browsing. On the other hand, I definitely use a number of sites that rely on javascript for useful purposes.

If you're worried about tracking, you can block ads and tracking scripts without disabling javascript. If you're worried about viruses, well, all I can say there is that in my experience and understanding, if you keep your browser updated, the odds of getting a virus via browser JS are exceedingly low. Doubly so if you're not frequenting sketchy sites.

I don't know, it seems to me like advice from a time before security was a priority for browser makers, and high-quality ad blockers existed. At this point, I really don't see the value.

Re:Please disable JavaScript to view this site by dreamcompiler on Saturday November 28, 2020 @09:18PM (#25242431)
On a great many web sites I have to spend the first 60 seconds on the site clicking on "X" boxes in popups to make them go away. In many cases there are actually several layers of popups obscuring the content, and some are delayed so they only pop up after you start reading the content. No I do not want to subscribe to your mailing list. No I don't want to take your survey. No I do not want to "chat" with your bot-pretending-to-be-a-human. Yes this is my sixth article from you this month but I will not be paying for a subscription, because I have enough of those already. Yes cookies are OK but I want the minimal set. And no I will not disable my adblocker because doing so makes this whole bloody nightmare even worse.

Disabling Javascript makes most of this insulting crap go away, and sometimes it is the only way to read the content.

Re:Please disable JavaScript to view this site by pugworthy on Saturday November 28, 2020 @10:44PM (#25242776)
I personally visit "a great many websites" daily, and rarely have this problem. Maybe it's uBlock doing it's job, or maybe it's the kind of site you go to?
Re:Please disable JavaScript to view this site by dreamcompiler on Saturday November 28, 2020 @11:10PM (#25242867)
Or maybe I need to try uBlock again rather than assuming my Pihole is as good as it gets. Thanks for the suggestion.
Re:Please disable JavaScript to view this site by scaladev on Saturday November 28, 2020 @11:22PM (#25242903)
Of course it isn't. Pihole and similar DNS-based blockers do nothing for those kinds of spam which require performing DOM manipulations to be removed. Check uBlock settings after installing it. It has a separate "annoyances" list. I enabled everything in it a few years ago and never had a single problem. It removes all the GDPR banners, "please give us your email" popups, useless "oh I am so original" plates in forum signatures, etc. etc.
Re:Please disable JavaScript to view this site by 3gg on Sunday November 29, 2020 @01:01PM (#25246734)
Thanks for the tip. I wasn't aware that uBlock had all those extra options.
Re:Please disable JavaScript to view this site by FlashBlaze on Sunday November 29, 2020 @12:57AM (#25243235)
I wasn't aware of this option in settings. Thanks.
Re:Please disable JavaScript to view this site by livre on Sunday November 29, 2020 @07:38AM (#25244816)
If the default annoyances lists aren't enough for you you can also add this one[1]

[1] https://github.com/yourduskquibbles/webannoyances

Re:Please disable JavaScript to view this site by mchusma on Sunday November 29, 2020 @11:44AM (#25246215)
I've never been bothered by ads/want to support sites I visit. so never considered using javascript blockers.

But I must say I hate GDPR banners and this could convert me.

Re:Please disable JavaScript to view this site by rusticpenn on Sunday November 29, 2020 @02:39AM (#25243615)
I would suggest ublock origin instead of ublock.
Re:Please disable JavaScript to view this site by arbol on Sunday November 29, 2020 @09:01AM (#25245131)
Pihole blocks server requests but ublock can do a whole lot more to the page by blocking specific html, css, and scripts. Ublock will prevent YouTube ads, for example, whereas pihole cannot as they come from the same server as the content.
Re:Please disable JavaScript to view this site by derefr on Sunday November 29, 2020 @03:26PM (#25247767)
That may have been true whenever you last evaluated your choice, but I find that today, on-load modals are mostly burned into the HTML. With Javascript disabled, rather than not being there, they're instead always there, impossible to get rid of.
Re:Please disable JavaScript to view this site by account42 on Tuesday December 01, 2020 @06:18AM (#25264284)
> With Javascript disabled, rather than not being there, they're instead always there, impossible to get rid of.

Inspect element -> remove

Browsers should really add "remove element" directly to the context menu.

Re:Please disable JavaScript to view this site by dreamcompiler on Wednesday December 02, 2020 @06:29PM (#25283243)
Agreed. I also would like a browser that would let me automatically disable any element with a z-index greater than 1.
Re:Please disable JavaScript to view this site by pkulak on Sunday November 29, 2020 @12:15AM (#25243089)
I just hit reader mode on FF. I didn't know modern sites would even load without JS enabled.
Re:Please disable JavaScript to view this site by 3gg on Sunday November 29, 2020 @01:03PM (#25246746)
But you do get the irony, right? It's like a browser is not for reading by default anymore, like stepping into a car and putting it in "car mode".
Re:Please disable JavaScript to view this site by pkulak on Monday November 30, 2020 @11:01AM (#25255120)
Oh yeah. Browsers are application runtimes. They have been for 20 years now.
Re:Please disable JavaScript to view this site by joel_ms on Sunday November 29, 2020 @01:21AM (#25243318)
>In many cases there are actually several layers of popups obscuring the content, and some are delayed so they only pop up after you start reading the content.

I swear I've had ones that popup as I move the mouse to close the tab.

Re:Please disable JavaScript to view this site by HeadsUpHigh on Sunday November 29, 2020 @07:45AM (#25244843)
Personally I usr stock ublock origin and sponsorblock. Thesr 2 together work reasonably well.
Re:Please disable JavaScript to view this site by ghego1 on Sunday November 29, 2020 @04:37AM (#25244055)
This is practically me
Re:Please disable JavaScript to view this site by zamalek on Saturday November 28, 2020 @07:56PM (#25241990)
> If you're worried about viruses [...]

Not to mention that a host of vulnerabilities were image related a few years back (one of the original rookits exploited a TGA bug).

> uBlock Origin

Honestly, this is the antivirus of the web. I helped my niece set up my old computer for Minecraft today, and she was explaining how her friend had installed viruses (adware, really) 3 times. Every one of those instances was caused by download link confusion for Minecraft mods. Disabling JavaScript isn't going to save you from being tricked into downloading shady software, only an adblocker will.

Re:Please disable JavaScript to view this site by matheusmoreira on Saturday November 28, 2020 @09:05PM (#25242364)
Yeah! After I install uBlock Origin, people seem to stop downloading malware for some reason. Funny how that works...
Re:Please disable JavaScript to view this site by billyhoffman on Saturday November 28, 2020 @11:29PM (#25242919)
> one of the original root kits exploited a TGA bug

As a lover of old image formats and the security issues they can cause* this sounds fascinating, but some quick google searches don’t seem to surface what you are referencing. Can you share any more details?

* I once fell into discovering a memory disclosure flaw with Firefox and XBM images

Re:Please disable JavaScript to view this site by edgyquant on Sunday November 29, 2020 @12:40AM (#25243180)
There was the github ddos that existed (iirc) as an image that made a request when viewed (I think it actually ran a script) and a couple smaller botnets that used similar functionality in 2018.
Re:Please disable JavaScript to view this site by zamalek on Sunday November 29, 2020 @11:50AM (#25246254)
Wish I could edit that, I meant jailbreak - which did give root access, technically allowing a host of nefarious use cases.
Re:Please disable JavaScript to view this site by sam0x17 on Saturday November 28, 2020 @09:03PM (#25242353)
In my experience Brave Browser (chrome based) runs circles around uBlock origin FYI
Re:Please disable JavaScript to view this site by stjohnswarts on Sunday November 29, 2020 @04:45AM (#25244082)
No it doesn't. I use Firefox with ubo and Brave (without extensions) for work and I notice no "running circles around" by either browser. While I'm sure brave's native blocking is faster, in human perception the time difference is essentially nil.
Re:Please disable JavaScript to view this site by sicromoft on Saturday November 28, 2020 @09:06PM (#25242370)
Can you say more? I’m a happy uBlock user — what am I missing by not using Brave?
Re:Please disable JavaScript to view this site by dbsmith83 on Saturday November 28, 2020 @10:09PM (#25242640)
Forced client updates
Re:Please disable JavaScript to view this site by movedx on Saturday November 28, 2020 @09:46PM (#25242563)
Re:Please disable JavaScript to view this site by judge2020 on Saturday November 28, 2020 @10:07PM (#25242637)
In case the OP wanted to know exactly how Brave's adblock is different from uBlock Origin instead of a link to the marketing page with links to other things like cryptocurrencies:

Brave's browser claims a speedup over AdBlock plus, but was inspired by UBO, so the performance is fairly similar, but is baked into the browser instead of being an extension.

> We therefore rebuilt our ad-blocker taking inspiration from uBlock Origin and Ghostery’s ad-blocker approach.

https://brave.com/improved-ad-blocker-performance/

Re:Please disable JavaScript to view this site by square_usual on Saturday November 28, 2020 @10:54PM (#25242816)
It's also written in Rust for performance.
Re:Please disable JavaScript to view this site by scaladev on Saturday November 28, 2020 @11:32PM (#25242932)
I use a 6 year old desktop which wasn't that great even when I built it, and a pretty terrible 8 year old laptop, and I don't have any problems with uBlock Origin's performance. I have almost every filter list enabled (except for some regional ones), which results in 153486 network and 173646 cosmetic filters total.
Re:Please disable JavaScript to view this site by sicromoft on Sunday November 29, 2020 @01:50AM (#25243415)
Same here. My take away from these replies is that I'm not missing anything by sticking with uBlock.
Re:Please disable JavaScript to view this site by sam0x17 on Sunday November 29, 2020 @02:22AM (#25243542)
With uBlock origin you're at the whim of the changes Google pushes through to chrome/chromium to nerf it.
Re:Please disable JavaScript to view this site by scaladev on Sunday November 29, 2020 @02:45AM (#25243638)
What are you talking about? uBlock Origin is not tied to Chromium, and is not controlled by Google (unlike Brave which is just a fork of Chromium).

Jesus, why does everyone these days automatically assumes that everyone else is using Chrome or Chromium? It's almost as crazy as calling Windows a "PC".

Re:Please disable JavaScript to view this site by sam0x17 on Tuesday December 01, 2020 @09:24PM (#25272593)
Google controls the frontend APIs uBlock origin is allowed to use, and they have pushed changes numerous times in the past (covered on HN) to intentionally nerf uBlock origin because it hurts their bottom line.
Re:Please disable JavaScript to view this site by steelbrain on Sunday November 29, 2020 @12:09AM (#25243060)
I don't understand this way of thinking. Rust isn't magically fast. You can use most languages to write both performant and lazy code.

Also just so you know, Brave isn't "written" in Rust alone, it is a big software with a lot of parts, including but not limited to a rendering engine, a JS VM and a WASM engine.

The Rust part at most (unconfirmed) would be the glue that connects them together, and I doubt that's where the bottleneck is for most browsers.

Re:Please disable JavaScript to view this site by vorticalbox on Sunday November 29, 2020 @12:37AM (#25243168)
Is that's the new algorithm that made the rust rewrite x69 faster

>The new algorithm with optimised set of rules is 69x faster on average than the current engine.

https://brave.com/improved-ad-blocker-performance/

Re:Please disable JavaScript to view this site by square_usual on Monday November 30, 2020 @02:00AM (#25251350)
I meant Brave's adblocker was written in Rust, as the context was about how Brave's adblocker differs from others.
Re:Please disable JavaScript to view this site by reciprocity on Sunday November 29, 2020 @10:36AM (#25245698)
"In my experience", followed by "for your information" - what an empty comment. You've not breathed any substance into your opinion with this post.
Re:Please disable JavaScript to view this site by mcovalt on Saturday November 28, 2020 @10:34PM (#25242741)
Developers have been reimplementing W3C specs in Javascript. Forms don't work, password managers have no idea what's going on, back buttons are hijacked, and sometimes even scrolling is thought to be better handled by a 4MB JavaScript file than by the browser.
Re:Please disable JavaScript to view this site by tempestn on Saturday November 28, 2020 @11:48PM (#25242978)
Whatever one thinks of that though, aren't those good reasons not to disable javascript?
Re:Please disable JavaScript to view this site by kitsunesoba on Sunday November 29, 2020 @12:34AM (#25243157)
They're an even better reason to find alternative sites.
Re:Please disable JavaScript to view this site by 1vuio0pswjnm7 on Saturday November 28, 2020 @09:35PM (#25242516)
I must say, honestly, I don't understand the JavaScript (JS) movement. I am not a web developer, perhaps that is the reason.

IME, 9 times out of 10, web developers are using JS for non-necessary reasons. The user configurable settings of popular browsers make it easy to designate the small number of sites that actually require JS and keep JS disabled for all other sites. They anticipate that the user will not have one default JS policy for all websites. In other words, these web browsers do not expect that all users should just leave JS enabled/disabled for every website, they acknowledge there will be situations where it should be disabled.

However as we all know most users probably never change settings. Doubtful it is a coincidence that all these browsers have JS enabled by default.

The number of pages I visit that actually require JS for me to retrieve the content is so small that I can use a client that does not contain a JS interpreter. Warnings and such one finds on web pages informing users that "Javascript is required" are usually false IME. I can still retrieve the content with the use of an HTTP request and no JS.

There is nothing inherently wrong with the use of JS. It is nice to have a built-in interpreter in a web browser for certain uses. For example, it makes web-based commerce much easier. However, I believe the largest use of JS today is to support the internet ad industry. Without having automatic execution of code by the browser without user review, approval or even interaction, I do not believe the internet ad "industry" would exist as we know it.

I believe this not because I think having a JS or other interpreter is technically necessary, but because these companies have become wholly reliant upon it.

That's why disabling JS stopsa remarkable amount of ads and tracking.

Re:Please disable JavaScript to view this site by kordlessagain on Saturday November 28, 2020 @09:59PM (#25242606)
The idea that some remote server needs my processing power to display images and text is so ridiculous because it has become normal. These things don't need my processing power, nor do they have a right to it by default.

I browse the web with JS disabled by default. If I encounter a site that has trouble with that, I enable it for that site until I can determine if it is worth leaving it enabled, which usually means at some point I'll be back there again and need it on.

For the most part, it is a superior experience to what I was seeing before with just an ad blocker. The most noticeable thing about it is probably how many images simply don't load because developers lean on JS for loading and scaling them.

Re:Please disable JavaScript to view this site by numpad0 on Saturday November 28, 2020 @11:13PM (#25242874)
I ain’t need no Turing complete sandbox on my box run random code from Internet while I skim through HyperText
Re:Please disable JavaScript to view this site by RReverser on Monday November 30, 2020 @12:32PM (#25256371)
CSS is Turing complete.
Re:Please disable JavaScript to view this site by deadwisdom on Sunday November 29, 2020 @06:16AM (#25244459)
That's not the point of this. This is not about disabling JS as a user of websites.

Heydon is a developer, and an influencer of developers. He's saying: web development is now absolutely obsessed with JavaScript, and it in no way has to be. The basics, HTML, CSS. That's what's important.

Re:Please disable JavaScript to view this site by tempestn on Sunday November 29, 2020 @06:11PM (#25248976)
That's a fair take. I was mostly reacting to the other top level comments I saw here.
Re:Please disable JavaScript to view this site by dx87 on Saturday November 28, 2020 @08:09PM (#25242051)
I keep it disabled just so sites load faster. Except for 1 or 2 sites, I don't care about anything except for the main text on a page, so it's a waste of time to let a ton of javascript run and load/format things that I don't care about.
Re:Please disable JavaScript to view this site by intrasight on Saturday November 28, 2020 @08:23PM (#25242136)
I generally visit web pages with JavaScript disabled and them immediately click "reader view". But there are certainly a lot of sites where content is loaded with script, and for those pages I must enabled JS. Q: Does anyone know of a Safari iOS add-in that allows for whitelisting of specific sites to run JS?
Re:Please disable JavaScript to view this site by shadowoflight on Saturday November 28, 2020 @08:55PM (#25242306)
Not sure if this solves your entire problem, but you can disable all content blockers for any sit in Safari for iOS[1].

[1]: https://www.macrumors.com/how-to/disable-content-blockers-sa...

Re:Please disable JavaScript to view this site by intrasight on Monday November 30, 2020 @06:22PM (#25260349)
So what I should then be looking for is a good content blocker - one that supports disabling JavaScript. Any recommendations?
Re:Please disable JavaScript to view this site by shadowoflight on Monday November 30, 2020 @06:48PM (#25260562)
No clue on that one, sorry. I’ve been using Purify[1] for ages, but have no clue if it blocks JS - I suspect it blocks only some JS, because my experience of the web isn’t trash while using it, but I do have to disable it sometimes to use the heavily animated navigation systems that some sites implement.

[1]: https://apps.apple.com/us/app/purify-block-ads-and-tracking/...

Re:Please disable JavaScript to view this site by matheusmoreira on Saturday November 28, 2020 @09:02PM (#25242349)
> I don't understand the disable JS movement

Javascript is a privacy and security nightmare. It's almost equivalent to downloading and silently executing untrusted code on your machine. I say "almost" because Javascript code is virtualized and sandboxed. Though I have no doubt people have already discovered vulnerabilities that enable code to break out of the sandbox.

Re:Please disable JavaScript to view this site by jolux on Saturday November 28, 2020 @09:11PM (#25242389)
The cost-benefit analysis of JavaScript usage comes down on the side of enabling it for most people, because of how much of the web is completely broken without it. Sandbox escapes are rare but extremely valuable, and they absolutely exist: https://www.computerworld.com/article/3186686/google-patches...
Re:Please disable JavaScript to view this site by kordlessagain on Saturday November 28, 2020 @10:15PM (#25242666)
> Javascript is a privacy and security nightmare.

AFAIK, JavaScript the language has neither privacy nor security issues of "nightmare" level.

> It's almost equivalent to downloading and silently executing untrusted code on your machine.

No it's not. The code is run in a VM, which is run in a browser. So, the code is limited in doing things to the browser, which itself is limited in what it can do to your computer (files and whatnot). So it's not at all like running untrusted code "on your machine".

> I say "almost" because Javascript code is virtualized and sandboxed.

It's virtualized (in the browser) such that all the code will run almost the same on different browsers and chipsets. Again, the browser code is what keeps the computer safe from any code it runs, including CSS code or other VMs it may use, like Java or Flash. Also the OS keeps the computer safe from the browser (or at least it should).

So, no it's not JavaScript that is the boogeyman here.

Re:Please disable JavaScript to view this site by jachee on Saturday November 28, 2020 @10:24PM (#25242700)
My understanding is that JavaScript is the primary mechanism used in browser fingerprinting and cross-site user tracking/"analytics". Isn't that a rather large privacy and (personal, if not specifically "cyber") security risk?
Re:Please disable JavaScript to view this site by 1vuio0pswjnm7 on Sunday November 29, 2020 @12:48AM (#25243205)
Yes.

The "security features" of popular browsers will never protect the user from the tentacles of internet advertising. Companies/organizations that author popular web browsers generally rely on the success of internet advertising in order to continue as going concerns; as such, they are obviously not focused on internet advertising, and collection of user data, as a "security threat".

Re:Please disable JavaScript to view this site by XCSme on Sunday November 29, 2020 @06:11PM (#25248979)
Actually, the main and most used mechanism of cross-site user tracking and "fingerprinting" are cookies, which do not require any JS to work.
Re:Please disable JavaScript to view this site by jachee on Monday November 30, 2020 @10:06PM (#25261841)
How does cross-site user tracking do its thing?
Re:Please disable JavaScript to view this site by XCSme on Tuesday December 01, 2020 @04:31AM (#25263778)
Set a cookie using HTTP headers.

Use a tracking pixel (eg. image) to make further requests and cookie will be included in the request.

Re:Please disable JavaScript to view this site by nop90 on Saturday November 28, 2020 @08:22PM (#25242134)
I wouldn't say javascript serves a useful purpose anymore as it's being used to generate entire UIs. It's more a requirement, and performance is taking the heat.
Re:Please disable JavaScript to view this site by NautilusWave on Sunday November 29, 2020 @08:17AM (#25244959)
Seeing as how this site is in part for job opportunity self-promotion, it seems like a decent way to weed out non-technical employers.
Re:Please disable JavaScript to view this site by tractorattr on Sunday November 29, 2020 @05:40AM (#25244289)
really don't you really understand?

this is not about how "you" do things, It is more about how it should be done! js is almost never provides want I want when I browse, I expect to get some information! I am not on the circus looking for adventures!

people who love to use javascript to prove that they have some kind of taste about how ux etc. I think these people should use some other platform for people who are insterested in show bussniss. think of this as public transportation is designed based on who the driver is that day! is this sound ok to you? do you understand this one?

web is just connection to other people, not a tool for others to bully you just bein' smart about "the code" they wrote is brilliant!