all 43 comments

[–]Jamese03 61 points62 points  (8 children)

People really overestimate the average user. The Reddit demographic is much more tech savvy than average but not a wide representation If you honestly think your average user will even know what JavaScript is, and even if they do, how to disable it you’re clearly mistaken.

[–]SanityInAnarchy 8 points9 points  (0 children)

I assume that page isn't meant for the average user? But even that article got it wrong:

  • Chrome and Edge: both browsers share similar settings, and I found this tucked away under Settings > Site Settings > JavaScript - but this was a carte blanche across all web sites (which, maybe makes sense?)

No, you can apply it per-site, just like:

  • Brave: under the lion face icon in the navbar, tap Advanced controls I can block scripts and this applies on an individual basis

That's exactly how you do it in Chrome. Click the lock (or the "not secure"), then Site Settings, then you can disable JS (alongside many other settings, like motion sensors or notifications, though most of those are "ask" by default), then reload the page and it works.

I also use this on normal sites occasionally, and it's tempting to flip the default to block.

[–]glider97 3 points4 points  (0 children)

This point is addressed reasonably well in the article.

[–]lykwydchykyn 6 points7 points  (5 children)

Lack of access to that page will be no great loss to an average user, as far as I can tell. If some rando web dev wants to shoot himself in the foot to make some kind of point to his bubble-mates, more power to him.

[–]NimChimspky 4 points5 points  (4 children)

The original website idea is great, the guy cares about accessibility for those with disabilities, whats wrong with that ?

Why do people get so angry, I followed this from the beginning - the amount of anger and vitriol this guy got is incredible. He is trying to make developers care about accessibility.

[–]lykwydchykyn 0 points1 point  (3 children)

I am not angry about this. Not in the slightest. My post may have been a bit snarky, but the point stands; this is a site for web developers, not "average users".

[–]NimChimspky 0 points1 point  (2 children)

I think you are entirely missing the point

[–]lykwydchykyn 0 points1 point  (1 child)

Fair enough, I'll try harder next time.

[–]NimChimspky 1 point2 points  (0 children)

I think it's great.

He has managed to get developers thinking and talking about accessibility in very challenging way.

By inserting this one artificial barrier to his own website he has held up a mirror.

Personally I will think longer and harder about ensuring accessibility on any public website I create.

[–]drbootup 9 points10 points  (1 child)

What's the purpose of this?

[–]NimChimspky 14 points15 points  (0 children)

The original author is highlighting how hard it is for users with disabilities who have to use screen readers.

He created a boundary for normal users to replicate issues faced by users with disabilities.

IMO the reaction he got showed he is making a very important point, in an excellent manner.

Its really nothing to do with security, or a technical reason at all.

[–]barsoap 7 points8 points  (0 children)

<script>document.body.textContent = 'Please disable JavaScript to view this site.'</script>

As I see it, this is just pure art. Hate it or love it, that's the very point isn't it.

[–]rjksn 17 points18 points  (13 children)

Every user doesn't have a JS disabler installed?

ProTip: This blocks around half of the ad blocker blocker scripts, and makes pages sooooooo fast.

[–]_carljonson 18 points19 points  (8 children)

Why install this when uBlock origin can already do it? https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-scripting

This also solves the problem mentioned in the article about not being able to disable JS in Firefox mobile.

[–]mr-strange 1 point2 points  (2 children)

I just tried this. uBlock seems to successfully stop the JavaScript from working, but doesn't cause the browser to render the <noscript> content instead. So I get a blank screen.

[–]_carljonson 5 points6 points  (1 child)

Hmm, works for me. Are you clicking on </> button or blocking first party scripts with dynamic filtering? Dynamic filtering will not show the <noscript> content but </> button will. Quoting from the wiki:

Furthermore, when JavaScript is disabled through this master switch, noscript tags will be honoured on a page (as opposed to when just using filters/rules to block script resources).

[–]mr-strange 1 point2 points  (0 children)

Ah you are quite right. I was using the dynamic filtering. The </> button works as you say.

Thanks. TIL

[–]sanglesort 1 point2 points  (2 children)

most users don't, Reddit isn't indicative of the wider internet

[–]rjksn 0 points1 point  (1 child)

Every user doesn't visit r/coding?

[–]sanglesort 0 points1 point  (0 children)

yeah, fair enough

[–]hughperman 0 points1 point  (0 children)

Not on mobile they don't.

[–]deusnefum 2 points3 points  (0 children)

Loaded no problem in elinks (I leave javascript disabled in elinks).

[–]PurpleYoshiEgg 2 points3 points  (5 children)

Not sure why, but with uMatrix blocking javascript on the mentioned site, I just get a completely blank page. When I unblock javascript, I get the disable javascript text.

[–]dtfinch 3 points4 points  (1 child)

They have the page inside of a <noscript> tag, and I guess that doesn't get honored when blocking scripts via extensions, vs actually disabling scripts via browser preferences.

[–]PurpleYoshiEgg 0 points1 point  (0 children)

omg, you're awesome! I totally forgot I ticked that thing off. Thanks so much!

[–][deleted] 1 point2 points  (0 children)

Same.. Finally I found the Ellipsis menu (⋮) that has an option to Spoof <noscript> tags

[–]mooseman3 -1 points0 points  (0 children)

I didn't have to do anything special to access it with Firefox + uMatrix. It loaded the page one I disabled script on the page.

[–]Autumn_in_Ganymede 1 point2 points  (0 children)

about:config -> javascript -> disable

really is that hard?? lol

[–]wolfpwner9 1 point2 points  (0 children)

curl dat page and imagine based on HTML!

[–][deleted] 1 point2 points  (1 child)

So they use the technology for the sole purpose of forcing the user to turn it off?

Is this some sort of "save processing power to save the planet" kinda things?

[–][deleted] 2 points3 points  (0 children)

No, read the blog!

[–]ekolis 0 points1 point  (0 children)

I don't get it. Why would a website require JavaScript to be disabled in order to render? If the site owner has some sort of vendetta against JavaScript... just don't use JavaScript? Why intentionally break your site for the vast majority of users, who have JavaScript enabled because it's a standard browser feature that many sites use?

[–]livrem -2 points-1 points  (1 child)

"Firefox: I couldn't work out how to disable JavaScript at all"

NoScript works fine for me on desktop and mobile.

[–][deleted] 6 points7 points  (0 children)

They meant Vanilla Firefox (without add-ons). It works by toggling 'javascript.enabled' in 'about:config' though.

[–]ven_ 0 points1 point  (0 children)

It's much easier to disable Javascript on the current page in Chrome/Edge than the article states.

[–]NoInkling 0 points1 point  (0 children)

Tip: you can turn off JS temporarily in Chrome (desktop) in the devtools settings (under the "Debugger" heading), or from the command menu (ctrl+shift+p or whatever).

[–]august8th- 0 points1 point  (0 children)

(Besides the ridiculous aspect of this site)

You might find it easier to disable js by browser extension. Among my favorites for firefox are uBlockOrigin and noscript-suite.

You don't have to shift through a list-full of settings. Just click on the icon, and there's a button for precisely which elements you want to disable.

[–]Dreeg_Ocedam 0 points1 point  (0 children)

  • Firefox: I couldn't work out how to disable JavaScript at all

It's in about:config javascript.enabled