For those wondering how it works, it seems to be a blacklist. Here's the crux of it: chrome.webRequest.onBeforeRequest.addListener(details => { // ... // Is domain white listed if (isDomainWhitelisted(domains[details.tabId])) { return { cancel: false }; } return { cancel: true }; }, { urls: blacklistedUrls }, ['blocking']); It's kind of sad how much boilerplate is required to write a simple extension. I wonder if the…
Show HN: No Coin – A browser extension to block coin miners
41–50 of 269 posts
Re: Show HN: No Coin – A browser extension to block coin miners
#42Earlier quoted context omitted.
Paying 50 cents requires you to keep their mining browser tab open for around a week with your CPU churning. Somehow I don't think that's the solution.
WebAssembly with OpenGL could change this.
Re: Show HN: No Coin – A browser extension to block coin miners
#43Re: Show HN: No Coin – A browser extension to block coin miners
#44Title could be improved - this is for Google Chrome only. Anyone using an ad blocker can simply add... https://coin-hive.com/lib/coinhive.min.js ...to their custom block-list instead, no need for an extension.
Regarding the custom list for an adblocker, as said in other comments, the idea was to keep it separate from adblocking. Coin mining in the browser is a different issue. Where ads are tracking you and visually interfering with your browsing experience, coin mining, if abused, is eating your computer ressources resulting in slow downs (from high CPU usage) and excessive power consumption. You might be OK with that and not with ads, or vice versa. Or you might just want to keep ads blocked entirely and just enable the coin mining script for a minute to pass a Captcha. That's why I believe having a separate extension is useful.
Re: Show HN: No Coin – A browser extension to block coin miners
#45For those wondering how it works, it seems to be a blacklist. Here's the crux of it: chrome.webRequest.onBeforeRequest.addListener(details => { // ... // Is domain white listed if (isDomainWhitelisted(domains[details.tabId])) { return { cancel: false }; } return { cancel: true }; }, { urls: blacklistedUrls }, ['blocking']); It's kind of sad how much boilerplate is required to write a simple extension. I wonder if the…
That's what was attempted with Greasemonkey and Tampermonkey, wasn't it? Userscripts and so on.
Re: Show HN: No Coin – A browser extension to block coin miners
#46The extension is simply blocking a list of blacklisted domains in blacklist.txt. Some way to detect that a non-visible page or service worker is using excessive CPU time or GPU assets would be useful. How long until porn sites start doing mining in the background?
Re: Show HN: No Coin – A browser extension to block coin miners
#47Imo: instead of a separate extention this should be a maintained blacklist for ad blockers.
Re: Show HN: No Coin – A browser extension to block coin miners
#48Earlier quoted context omitted.
WebAssembly with OpenGL could change this.
I don't know what they would have to be mining to make cpu's or integrated GPU's make sense, certainly not bitcoin where even if you pay nothing for electricity to are unlikely to be able to do any useful work in the time someone visits your site.
Re: Show HN: No Coin – A browser extension to block coin miners
#49For context: The Pirate Bay is now launching a javascript-based Monero miner in all visitors' browsers to mine coins for them in the background (possibly as an alternative to ads).
CPU mining is so unprofitable, but I suppose with thousands of users..
Re: Show HN: No Coin – A browser extension to block coin miners
#50Title could be improved - this is for Google Chrome only. Anyone using an ad blocker can simply add... https://coin-hive.com/lib/coinhive.min.js ...to their custom block-list instead, no need for an extension.
It is not exactly Google Chrome only, you can run it in any Chromium based browser such as Opera, Yandex, Vivaldi, etc... And I do also have plans to port the extension to FireFox (I haven't read their docs yet but I guess it shouldn't be too hard). Regarding the custom list for an adblocker, as said in other comments, the idea was to keep it separate from adblocking. Coin mining in the browser is a different issue.…
Can you please share your email to make you the owner of it?