Prevent Swedbank(and Sparbankerna) from automatically logging out after 5 minutes of inactivity
当前为
// ==UserScript==
// @name Keep Swedbank awake
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Prevent Swedbank(and Sparbankerna) from automatically logging out after 5 minutes of inactivity
// @author Oscar Jonsson
// @match https://online.swedbank.se/app/ib/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function mutationEvent(mutationsList, observer) {
var button=document.querySelector("#layout > div._modal-cloak._modal-cloak--active > bro-modal > div > ng-transclude > div > swed-button-group > div > swed-button-group-transclusion.swed-button-group_container._align-end-stretch._layout-row > button.swed-button.swed-button--executive");
button&&button.click();
}
(new MutationObserver(mutationEvent)).observe(document.body, { attributes: true, childList: true, subtree: true });
})();