Last active
January 3, 2021 15:42
-
-
Save splintor/7982159b7488b92505d27b7ecc594b6e to your computer and use it in GitHub Desktop.
JIRA Auto-login
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 JIRA Auto-login | |
| // @version 0.3 | |
| // @description Click the auto-login link when JIRA is not connected | |
| // @author Shmulik Flint | |
| // @match https://jira.wixpress.com/* | |
| // @icon https://jira.wixpress.com/s/axu8xe/803004/0ce41cd00ea738d648224bf4342ed953/_/images/fav-jsw.png | |
| // @updateURL https://gist.github.com/splintor/7982159b7488b92505d27b7ecc594b6e/raw | |
| // @downloadURL https://gist.github.com/splintor/7982159b7488b92505d27b7ecc594b6e/raw | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function clickLoginLink() { | |
| var signInLink = document.querySelector('a[href*=servlet\\/samlsso]'); | |
| if (!signInLink) { | |
| setTimeout(clickLoginLink, 1000); | |
| return; | |
| } | |
| signInLink.click(); | |
| } | |
| clickLoginLink(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment