NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @namespace https://openuserjs.org/users/Schobiwan // @name Flatex Depot KEST // @copyright 2020, Schobiwan (https://openuserjs.org/users/Schobiwan) // @license MIT // @version 1.0.0 // @description Show Positive Amounts after KEST // @author Thomas Schober // @match https://konto.flatex.at/banking-flatex.at/depositStatementFormAction.do // @include https://konto.flatex.at/banking-flatex.at/depositStatementFormAction.do // @grant none // ==/UserScript== (function() { 'use strict'; var kest = 0; var ht = 0; var ht_new = 0; setTimeout(function(){ var cfive = document.querySelectorAll('.First .C5 .PositiveAmount'); if(cfive.length > 0) { for(var i2=0;i2 < cfive.length; i2++) { if(i2 == (cfive.length-1)) { //console.log(cfive[i2]); ht = cfive[i2].innerHTML; ht = parseInt(ht); ht_new = ht - kest; ht_new = ht+" EUR<br />After KEST: "+parseFloat(ht_new).toFixed(2)+" EUR"; cfive[i2].innerHTML = ht_new; } else { //console.log(cfive[i2]); ht = cfive[i2].innerHTML; ht = parseInt(ht); ht_new = ht - (ht/100*27.5); kest += ht/100*27.5; ht_new = ht+" EUR<br />After KEST: "+parseFloat(ht_new).toFixed(2)+" EUR"; cfive[i2].innerHTML = ht_new; } } } },200); })();