Square Enix OTP autocomplete hint

Makes it easier for 1Password to autocomplete SE OTP, per https://developer.1password.com/docs/web/compatible-website-design/

  1. // ==UserScript==
  2. // @name Square Enix OTP autocomplete hint
  3. // @description Makes it easier for 1Password to autocomplete SE OTP, per https://developer.1password.com/docs/web/compatible-website-design/
  4. // @namespace Violentmonkey Scripts
  5. // @match https://secure.square-enix.com/oauth/oa/*
  6. // @grant none
  7. // @version 1.2
  8. // @author vivacious-memory
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. window.addEventListener('load', function() {
  13. document.querySelector('input[name="otppw"]').autocomplete="one-time-code";
  14. }, false);