iCard Timer Remover

Disables logout timer in iCard

  1. // ==UserScript==
  2. // @name iCard Timer Remover
  3. // @namespace https://gitlab.com/user890104
  4. // @version 1.1
  5. // @author Vencislav Atanasov
  6. // @description Disables logout timer in iCard
  7. // @match https://icard.com/account/*
  8. // @match https://icard.com/client/*/accountv2*
  9. // @connect self
  10. // @grant GM_xmlhttpRequest
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. var url;
  17.  
  18. if (location.href.indexOf('https://icard.com/account/') === 0) {
  19. // personal
  20. url = '/account/bg/presettings-payment';
  21. }
  22. else {
  23. if (location.href.indexOf('https://icard.com/client/') === 0) {
  24. // business
  25. url = '/client/bg/accountv2/get-last-transactions';
  26. }
  27. else {
  28. console.warn('Unable to determine which iCard portal you\'re using. Please check for script updates or send a report to the developer.');
  29. return;
  30. }
  31. }
  32.  
  33. setInterval(function() {
  34. GM_xmlhttpRequest({
  35. method: 'GET',
  36. url: url
  37. });
  38. }, 30 * 1000);
  39. })();

QingJ © 2025

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