Created
January 2, 2026 09:50
-
-
Save romuald/fb3c05ed78e61fb9f0e4aa5e2589f595 to your computer and use it in GitHub Desktop.
Fix Zendesk MFA pager, press enter to submit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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