Prevent Swedbank from automatically logging out after 5 minutes of inactivity

Hindra swedbank eller sparbankerna från att logga ut en efter en stund

اعتبارا من 24-07-2020. شاهد أحدث إصدار.

// ==UserScript==
// @name         Prevent Swedbank from automatically logging out after 5 minutes of inactivity
// @namespace    http://tampermonkey.net/
// @version      1
// @description  Hindra swedbank eller sparbankerna från att logga ut en efter en stund
// @author       Oscar Jonsson
// @match        https://online.swedbank.se/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    function mutationEvent(mutationsList, observer) {
        var element=document.querySelector("#mat-dialog-0 > fdp-session-warning-modal > acorn-modal-section > section > acorn-button-container > acorn-button:nth-child(1)");
        if (element) {
          var button=element.shadowRoot.querySelector("div");
          button&&button.click();
            console.log("keep awake");
        }
    }
    (new MutationObserver(mutationEvent)).observe(document.body, { attributes: true, childList: true, subtree: true });
})();
长期地址
遇到问题?请前往 GitHub 提 Issues。