Skip to content

Instantly share code, notes, and snippets.

@romuald
Created January 2, 2026 09:50
Show Gist options
  • Select an option

  • Save romuald/fb3c05ed78e61fb9f0e4aa5e2589f595 to your computer and use it in GitHub Desktop.

Select an option

Save romuald/fb3c05ed78e61fb9f0e4aa5e2589f595 to your computer and use it in GitHub Desktop.
Fix Zendesk MFA pager, press enter to submit
// ==UserScript==
// @name Zendesk fix MFA auth
// @version 2026-01-02
// @description Just press enter dammit
// @match https://*.zendesk.com/auth/v3/mfa*
// @icon https://www.google.com/s2/favicons?sz=64&domain=zendesk.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
const $ = (id) => document.querySelector(`[data-testid="${id}"]`)
const input = $("mfa-challenge-input")
const submit = $("mfa-challenge-submit")
if ( input === null || submit === null ) {
return
}
const form = document.createElement("form")
form.addEventListener("submit", (e) => {
e.preventDefault()
submit.click()
})
input.replaceWith(form)
form.appendChild(input)
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment