TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

JavaScript Restrictor

92 pointsby rlv-danover 3 years ago

10 comments

cxrover 3 years ago
From an announcement to the bug-gnuzilla list today &lt;<a href="https:&#x2F;&#x2F;lists.gnu.org&#x2F;archive&#x2F;html&#x2F;bug-gnuzilla&#x2F;2021-10&#x2F;msg00001.html" rel="nofollow">https:&#x2F;&#x2F;lists.gnu.org&#x2F;archive&#x2F;html&#x2F;bug-gnuzilla&#x2F;2021-10&#x2F;msg0...</a>&gt;:<p>&gt; The extension is[...] currently under the name of JavaScript Restrictor but it will be renamed to JShelter soon.<p>FSF funding announcement: &lt;<a href="https:&#x2F;&#x2F;www.fsf.org&#x2F;news&#x2F;fsf-announces-jshelter-browser-add-on-to-combat-threats-from-nonfree-javascript" rel="nofollow">https:&#x2F;&#x2F;www.fsf.org&#x2F;news&#x2F;fsf-announces-jshelter-browser-add-...</a>&gt;<p>Discussed two days ago: &lt;<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28736113" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28736113</a>&gt;
kennywinkerover 3 years ago
I’d love to see this kind of functionality built in to firefox. I’ve tried running without js entirely but too much of the web is broken. But a paired down js, that might work!
elwellover 3 years ago
Is there any concern that limiting JavaScript&#x27;s functionality could cause unexpected behavior? E.g., your credit card is charged upon checkout but next part of payment flow isn&#x27;t triggered and your order isn&#x27;t actually placed. Or, some DDOS protector thinks you are the same agent as everyone else using a similarly restricted config.
评论 #28765600 未加载
评论 #28765088 未加载
tannhaeuserover 3 years ago
The protection levels and chosen restrictions for the default protection level 2 seem considerate [1]. Welcome back to the Web of 2003.<p>[1]: <a href="https:&#x2F;&#x2F;polcak.github.io&#x2F;jsrestrictor&#x2F;levels.html" rel="nofollow">https:&#x2F;&#x2F;polcak.github.io&#x2F;jsrestrictor&#x2F;levels.html</a>
zokierover 3 years ago
One thing that I&#x27;ve been thinking is that in addition to restricting what APIs JS can access, browser could restrict <i>when</i> JS can run; in practice I guess that&#x27;d mean what events are allowed to trigger JS. Most importantly I&#x27;d block the stuff that runs automatically in the background, such as scroll&#x2F;hover&#x2F;timer events, and allow stuff that represents more explicit user actions such as form submit events.<p>Not sure if such thing would be really feasible without breaking half of the web, but I envision that it could bring nice perf improvements and block many sorts of nasty user behavior tracking
评论 #28764775 未加载
评论 #28765661 未加载
ravenstineover 3 years ago
Would be nice if it spoofed the fonts API. It&#x27;s a stupidly easy way to fingerprint a browser but it seems like no one has yet been interested in thwarting that.
phist_mcgeeover 3 years ago
I know this is a small (and probably petty complaint), but this website seems to have a fixed width larger than my screen, which means I have to horizontal scroll to read. When I see this particular behaviour on sites, it usually lowers my opinion of the content I am reading and in this case a site about JS, I feel like there isn&#x27;t an excuse for it.
评论 #28769779 未加载
tyingqover 3 years ago
Neat idea, though it&#x27;s not really a sandbox or anything. It&#x27;s doing a lot of clever renaming and wrapping. Which is all you could do as a browser extension. Still helpful, but the descriptions on the page make it sound like it&#x27;s a deeper set of protections.
pattyjover 3 years ago
I&#x27;ve wanted an extension like this for a while. Thanks for sharing!
8bitsruleover 3 years ago
Found this page hard to read because text does not wrap when zooming in to increase font-size.
评论 #28769765 未加载