DB changes

This commit is contained in:
iw0
2025-03-18 19:47:45 +01:00
parent beea705bb0
commit 09dba84faa
4 changed files with 17 additions and 8 deletions

View File

@@ -198,7 +198,7 @@ const matchDropdown = (mut, testName, openOrClose) => {
return mut.target.parentNode.parentNode.classList.contains(testName) &&
Array.from(nodes).some(
n => n.nodeType === Node.ELEMENT_NODE &&
n.classList.contains("db-web-dropdown-outer-container"))
n.classList.contains("db-web-transition-dropdown_outer-container"))
}
/**@param {MutationRecord} mut */
@@ -225,7 +225,7 @@ const startClaim = {
const fillData = {
name: "fillData",
match: node => node.classList.contains("fahrgastrechte-bahn-card-auswahl"),
match: node => node.classList.contains("bahncard-auswahl"),
execute: node => {
settings.get(["bcnum", "bday"]).then(cfg => {
for (const [k, v] of Object.entries(cfg)) {
@@ -245,7 +245,7 @@ const clickContinue = {
name: "clickContinue",
match: () => $('#fahrgastrechte-bahn-card-auswahl-geburts-datum--db-web-text-input').value !== "",
execute: e => {
const continueButton = $('.fahrgastrechte-bahn-card-auswahl button.fahrgastrechte-continue-button');
const continueButton = $('.bahncard-auswahl button.fahrgastrechte-continue-button');
if (continueButton instanceof Element) {
continueButton.dispatchEvent(_clickEv());
return true;