Hacker News new | ask | show | jobs
by chill1 4420 days ago
Allow me to list a few reasons I run with JS disabled by default:

- Poorly written JavaScript that causes my system to stall for a time, to the point where I have to kill all my browser's processes manually; more common than you'd think.

- Websites that attempt to mine cryptocurrencies using my browser with JavaScript; without my knowledge or permission.

- Then there's XSS and CSRF vulnerabilities that can leverage JavaScript to hijack active sessions.

And I am probably forgetting a few more reasons..

I do enable JavaScript for specific trusted websites, and I make temporary exceptions every now and then if necessary. But, I usually try to keep the list of exceptions short.

In regards to needing JavaScript for styling / design purposes.. Are you sure you need it? It might take you a bit longer to tweak and restructure the HTML and CSS to accomplish your design without JS, but it's well worth it.

2 comments

Mining bitcoins in javascript on someone else's computer. Surely it would be quicker to get the 386 computers out of the landfill and use them than to mine bitcoins in javascript remotely in some botnet of sorts.

I am intrigued. Can you send me a URL of somewhere that will mine bitcoins on my computer?

I don't have any websites bookmarked that employ such scripts, but DuckingIt (tm) yields the following links on that topic:

https://bitcointalk.org/index.php?topic=9042.0

http://www.bitcoinplus.com/miner/embeddable

https://github.com/progranism/Bitcoin-JavaScript-Miner

You should probably not embed such scripts into your website(s). If it's not illegal, it's certainly super shady, and an extremely inefficient method of mining bitcoins.

Quicker, probably :) but not cheaper! You can be as inefficient as you want if it's other people's resources you're wasting.
Oh trust me, I use regular expressions in my CSS, when I reach for JavaScript to accomplish something it's because CSS4 (or CSS5) aren't out yet ;)