Keep Swedbank awake

Prevent Swedbank(and Sparbankerna) from automatically logging out after 5 minutes of inactivity

Versão de: 11/02/2020. Veja: a última versão.

// ==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 });
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。