Last active
July 3, 2023 18:54
-
-
Save gregory-seidman/02db78a2ad89cd7621988acdcdf0fb20 to your computer and use it in GitHub Desktop.
This file contains 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 Okta Remember Me | |
// @namespace https://gist.github.com/gregory-seidman/dd8b7a93f4603ef3e484c82d45809a95 | |
// @version 1.0.2 | |
// @description On this browser, Okta should always remember me | |
// @author Gregory Seidman | |
// @downloadURL https://gist.github.com/gregory-seidman/02db78a2ad89cd7621988acdcdf0fb20/raw/okta_remember_me.user.js | |
// @updateURL https://gist.github.com/gregory-seidman/02db78a2ad89cd7621988acdcdf0fb20/raw/okta_remember_me.user.js | |
// @match https://*.okta.com/oauth2/v1/authorize?* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=okta.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.setTimeout(() => { | |
document | |
.querySelector('.custom-checkbox label[data-se-for-name="rememberMe"]') | |
.click(); | |
document | |
.querySelector('input.button-primary[type="submit"]') | |
.click() | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment