Chromakey shader

I’ve been attempting to utilize a shader to remove a color from a video, ie green/chroma keying.
The shader was originally posted by Mugen87 at Production-ready green screen with three.js

Here’s the code:

html, body{ background:#323232; outline: none; overflow: hidden; margin:0;}