Can automatically generate and fill out login-fields for TOTP (authenticator app) tokens.
Use at own risk. It significantly reduces the security of 2FA by effectively reducing it to 1-factor.
For use: Extension Greasemonkey for Chrome or Tampermonkey for Firefox
For setting up: Nodejs
- Pull project
- Go to service you want to add this to, add new authenticator. When it gives you the step to scan a QR-code, say you cannot scan it. You should then get a secret a roughly 16 character random string.
- Copy the secret.
- In the code, go to ./src/totp-config.js, insert the secret instead of
ENTER TOTP SECRET HERE
. - In command line, run:
npm install
, thennpm run build
- Go to ./dist/totp-autofill.user.js
- If the authenticator setup asks for a token to verify, paste the contents of
./dist/totp-autofill.user.js
into a javascript console to get a token. - On the login page you want this to work for, add a new grease- or tampermonkey userscript, insert contents of
./dist/totp-autofill.user.js
. - In the top of the script in Grease- or Tampermonkey, replace
// @match http*://example.com/
with// @match [whatever url you're currently on]