News for hackers. Stuff that matters.
Re:Making a case for JavaScript, in-browser Mining by ulrikrasmussen on Thursday February 15, 2018 @08:41AM (#16383870)
Except it doesn't really play well together with battery-powered devices.
Re:Making a case for JavaScript, in-browser Mining by tazard on Thursday February 15, 2018 @08:55AM (#16383960)
How about disabling on battery devices then?
Re:Making a case for JavaScript, in-browser Mining by berkes on Friday February 16, 2018 @03:12AM (#16390742)
This is what I -somewhat- did in the example: I've disabled it for mobile. I don't think browsers have an API to detect what power-source the underlying machine is using, though.
Re:Making a case for JavaScript, in-browser Mining by berkes on Saturday February 17, 2018 @03:28AM (#16399714)
Turns out that the disabling did not work.

It is possible to detect mobile and disable it completely, but for now, because it's mostly demo material, I'll leave it enabled for mobile too. In a real-world scenario you'd probably show a message or explain why a mobile user cannot use it. That would certainly give you credits.

Re:Making a case for JavaScript, in-browser Mining by amelius on Thursday February 15, 2018 @09:02AM (#16384004)
Then everybody would unplug their laptops to save on their energy bill.
Re:Making a case for JavaScript, in-browser Mining by ChrisSD on Thursday February 15, 2018 @09:08AM (#16384044)
Is there a battery API for websites? The old one was deprecated because it caused too many issues (e.g. with fingerprinting).