Skip to content

Instantly share code, notes, and snippets.

@sathishshan
Created March 6, 2021 14:03
Show Gist options
  • Save sathishshan/223b3b1c1b9d6256dd0de8e50aaa2aaf to your computer and use it in GitHub Desktop.
Save sathishshan/223b3b1c1b9d6256dd0de8e50aaa2aaf to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Login
// @namespace Auto_Login
// @description Login_Auto
// @version 1.0
// @match https://site.com
// @run-at document-start
// ==/UserScript==
window.addEventListener('load', function() {
// your code here
function login(){
function mfa(){
document.getElementsByClassName("button-orange wide")[0].click()
}
setTimeout(mfa, 100);
setTimeout(mfa, 1000);
}
login();
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment