13
2
"Bitcoin Plus" is one example of a javascript bitcoin mining client that can CPU mine bitcoins through a browser when viewing a website. Here is a screenshot from 4bitcoins dot com which automatically starts the miner when you load the page:

It could be considered a form of theft for a website to profit from the extra electricity used by a viewer of the page, and definitely isn't environmentally friendly as CPU mining through javascript is hugely inefficient and any revenue earned doesn't even come close to covering the cost of the electricity consumed (and besides, in this case the benefit is to the website, and the cost is to the user).
Doing some quick maths I'd estimate that the mining would earn the website owner around 0.12 US cents per 24hrs running, at a cost of around 17 cents to the user in power (assumed 1BTC=$5US, difficulty around 1.8m, power 14c/kWh).
In short, it's desirable to block such functionality from running without the user's consent.
How could such integrated mining be disabled without blanket-disabling javascript on all websites? Bear in mind that even though the miner is visible on 4bitcoins dot com, it doesn't need to be visible to work.
ps: I didn't use standard syntax for the website name, as that will only encourage search engines to send more traffic there!
I have to wonder whether you wasted more electricity asking this question than all the JS hashing in the world combined. Also, like David Perry said, it's really nothing compared to Flash... – JamesTheAwesomeDude – 2013-04-01T08:26:26.663
The JS doesnt actually mine Bitcoins. It's just for research purposes. – Mascarpone – 2011-10-05T12:27:54.503
3I wouldn't accuse JavaScript miners of theft. Flash ads use a fair amount of CPU to display the wares of advertisers, and far more bandwidth than mining. If this is theft then so is all advertising of any kind, rickrolling or any unwanted use of any of your computing resources. I would reword the question to that end. You retain the right to control what does and does not run on your computer, but you can't accuse these folks of a crime. – David Perry – 2011-10-05T23:07:52.020
Actually, the "What's this?" link says: "Your computer fan turned on because generating bitcoin takes computer power. It's essentially generating money to help support the website you came from." That doesn't sound like research to me. – Highly Irregular – 2011-10-05T23:41:25.503
Whether or not it might be considered a theft comes down to legality; it's probably legal, but that doesn't make it ethical. I will reword it to allow users to decide for themselves. I also believe that the majority of users don't have the skills to take control of their computer to prevent use of a loophole like that - most people wouldn't allow it if they knew the details. – Highly Irregular – 2011-10-05T23:45:42.517
I also disagree that it's similar to most Flash advertising. As an experiment I viewed a page with 3 embedded typical Flash ads, and the CPU usage was around 4% compared to 80% for the miner application. – Highly Irregular – 2011-10-05T23:50:44.680
I repeat what I said: Even though the JS perform hashes, no actual coin is generated. – Mascarpone – 2011-10-06T01:36:02.350
2Can you provide some evidence please? – Highly Irregular – 2011-10-06T08:41:13.757
2 – Mascarpone – 2011-10-06T12:38:28.687
>https://bitcointalk.org/index.php?topic=9042.0
After a more careful reading, I think I have to apologize. Probably I confused this project with the original http://bitp.it/