Have users mine Monero XMR while they watch your YouTube videos with VidYen VidHash!steemCreated with Sketch.

in #monero6 years ago (edited)

icon-256x256.png

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.

#Screenshots

Shortcode Example
screenshot-1.png

Disclaimer Before Accepting
screenshot-2.png

Output on the WordPress Page
screenshot-3.png

MoneroOcean Hash Tracking
screenshot-4.png

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:

https://discord.gg/6svN5sS

Thanks again!

-Felty

vyworker_001.gif

Coin Marketplace

STEEM 0.26
TRX 0.26
JST 0.039
BTC 94483.51
ETH 3348.38
USDT 1.00
SBD 3.29