Hindra swedbank eller sparbankerna från att logga ut en efter en stund
当前为
// ==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) {
console.log("mutation");
var button=document.querySelector('#mat-dialog-1 > fdp-session-warning-modal > acorn-modal-section > section > acorn-button-container > acorn-button:nth-child(1)');
button&&button.click();
}
(new MutationObserver(mutationEvent)).observe(document.body, { attributes: true, childList: true, subtree: true });
})();