ING DiBa Comfort Tools

Automatically refreshes login and keeps stocks updating live on German DiBa site.

目前為 2023-03-16 提交的版本,檢視 最新版本

// ==UserScript==
// @name           ING DiBa Comfort Tools

// @description    Automatically refreshes login and keeps stocks updating live on German DiBa site.
// @description:de Erneuert automatisch den Login auf der DiBa website und hält die Kurse im Live-Modus.

// @version        0.2.0
// @author         Rsge
// @copyright      2023+, Jan G. (Rsge)
// @license        Mozilla Public License 2.0
// @icon           https://banking.ing.de/app/obligo/static/resource/icon-16x16-ver-34F56DF9647FC5EF3BBEFA31470B5827.png

// @namespace      https://github.com/Rsge
// @homepageURL    https://github.com/Rsge/ING-DiBa-Comfort-Tools
// @supportURL     https://github.com/Rsge/ING-DiBa-Comfort-Tools/issues

// @match          https://banking.ing.de/app/*
// @match          https://wertpapiere.ing.de/Investieren/*/Charts/*

// @grant          none
// ==/UserScript==

(function() {
  'use strict';

  // -- Auto-Refreshers --
  var millisecondsToWait
  const minsToMSMult = 60 * 1000
  // Automatic login refresh.
  millisecondsToWait = Math.floor(4.5 * minsToMSMult);
  window.setInterval(function () {
    window.dispatchEvent(new CustomEvent("ingde-sn:reset-timer"));
  }, millisecondsToWait);
  // Automatic stocks refresh.
  millisecondsToWait = Math.floor(59 * minsToMSMult);
  window.setInterval(function() {
    window.dispatchEvent(new MouseEvent("mousemove"));
  }, millisecondsToWait);
})();

QingJ © 2025

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