Last active
June 16, 2020 09:45
-
-
Save dploeger/5f51c3ea9046a35f386d6bf376fbfa83 to your computer and use it in GitHub Desktop.
Tampermonkey script to automatically login into graylog
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 Graylog login | |
// @namespace https://kps.com/ | |
// @version 0.1 | |
// @description Automatically logs in into Graylog | |
// @author Dennis Ploeger <[email protected]> | |
// @grant none | |
// @downloadUrl https://gist.github.com/dploeger/5f51c3ea9046a35f386d6bf376fbfa83/raw | |
// @uploadUrl https://gist.github.com/dploeger/5f51c3ea9046a35f386d6bf376fbfa83/raw | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const checkLogin = () => { | |
if (document.querySelector('#username')) { | |
document.querySelector('button').click() | |
} | |
window.setTimeout(checkLogin, 5000) | |
} | |
window.setTimeout(checkLogin, 5000) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment