iCard Timer Remover

Disables logout timer in iCard

// ==UserScript==
// @name         iCard Timer Remover
// @namespace    https://gitlab.com/user890104
// @version      1.1
// @author       Vencislav Atanasov
// @description  Disables logout timer in iCard
// @match        https://icard.com/account/*
// @match        https://icard.com/client/*/accountv2*
// @connect      self
// @grant        GM_xmlhttpRequest
// ==/UserScript==

(function() {
    'use strict';

    var url;

    if (location.href.indexOf('https://icard.com/account/') === 0) {
        // personal
        url = '/account/bg/presettings-payment';
    }
    else {
        if (location.href.indexOf('https://icard.com/client/') === 0) {
            // business
            url = '/client/bg/accountv2/get-last-transactions';
        }
        else {
            console.warn('Unable to determine which iCard portal you\'re using. Please check for script updates or send a report to the developer.');
            return;
        }
    }

    setInterval(function() {
        GM_xmlhttpRequest({
            method: 'GET',
            url: url
        });
    }, 30 * 1000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址