Search in your favorite browser mailvelope extension and install it
Under Option > General there will be an option to to choose your encryption backend, if you see an option to use OpenGPG.js or GnuPG you are done and don't have to do anything else.