Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iDschepe/001b3c0d6baecd04e8a41833908369fc to your computer and use it in GitHub Desktop.
Save iDschepe/001b3c0d6baecd04e8a41833908369fc to your computer and use it in GitHub Desktop.
Hypovereinsbank Online - Kontoumsätze automatisch absteigend sortieren
// ==UserScript==
// @name HypoVereinsbank - Umsätze absteigend sortieren
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author idschepe
// @match https://my.hypovereinsbank.de/portal?view=/de/banking/konto/kontofuehrung/umsaetze.jsp
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Wait for the page to finish loading
window.addEventListener('load', function() {
setTimeout(function() {
// Find the element by text content
// adjust if you use another language, you could also use the title text of another column to click (sort)
const searchText = 'Buchung';
const elements = Array.from(document.querySelectorAll('*')).filter(element => element.textContent.trim() === searchText);
// Simulate a click on the first matching element
if (elements.length > 0) {
elements[0].click();
console.log("clicking", { element: elements[0] });
}
}, 300);
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment