Have users mine Monero XMR while they watch your YouTube videos with VidYen VidHash!
https://wordpress.org/plugins/vidyen-vidhash/
Description
VidYen VidHash is a Monero browser miner plugin which mines while the user is watching an embedded YouTube video on your website. Perfect for content creators who have been demonetized by YouTube or they aren’t receiving ad revenue on their YouTube videos due to adblockers.
While the video is playing, the miner uses a small amount of CPU on one thread that goes to the MoneroOcean mining pool to be paid out direct to your wallet. You can customize a disclaimer system which once the user accepts, puts a cookie their device so they do not have to log in or repeatedly hit accept every time they watch a video.
FEATURES
- Is not blocked by Adblockers or other AV software
Mining only happens while video is playing - Uses the existing YouTube interface while embedded on your WordPress page
- Brave Browser Friendly
- Uses the MoneroOcean pool which allows a combination of GPU and browser mining to same wallet (a feature not supported by Coinhive)
- Uses only uses a default of 1 CPU thread to prevent performance issues while watching YouTube videos (this can be modded similar to the VY256 miner)
- Does not require user to login, but only accept your disclaimer which adds a cookie that agreed to your resource use
- Disclaimer can be localized for languages other than English.
FUTURE PLANS
Tie in to VYPS for user tracking.
Vimeo and other video site formats.
KNOWN ISSUES
Multiple tabs do not work and prior must be closed.
Shortcode Example
Disclaimer Before Accepting
Output on the WordPress Page
MoneroOcean Hash Tracking
Developer Ramblings
Basically you just need WordPress, a Monero wallet, and some YouTube video urls to embed on your site.
While the video is playing, it mines a small amount of XMR. If the user hits pause, it will pause the mining so user controls are there. I did not set to crank up to 100% by default nor put controls beyond simply hitting the pause and play button, as I think this should be non-intrusive to the user as if they were watching a regular YouTube video.
It uses javascript to mine to the MoneroOcean pool which you can track on their pool via their dashboard (which is nice if you want to mine with a GPU you can combine it to same wallet).
Now of course this is no where as efficient as GPU mining, but if you have been demonetized off YouTube or just have a lot of followers who would do this, you can mine XMR that way.
Because the js files are stored locally on your WordPress site, it avoids AV and all the Adblockers I've tested (Brave, uBlock)
So even though it blocks the YouTube ads, it still mines XMR.
There is a disclaimer screen that the users will have to click "Agree" so that they know you are doing this (Text is customizable if you are language is other than English or you want to say something more specific)
And will save a cookie so they don't have to click agree everytime they watch a video on your site with this.
Now I do get a 10% and MO gets his pool fees, but generally its way better than Coinhive I suppose.
Some known bugs... Only work in one tab at a time. Multiple videos on same page have some issues. And Brave browser will pause a video if you switch tabs. This is an intended feature on their part the way they handle browser mining.
Any questions. Feel free to ask!
Any technical issues feel free to ping me on my Discord:
Thanks again!
-Felty