Skip to content

Instantly share code, notes, and snippets.

@AldoMX
Created May 18, 2021 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AldoMX/7e9f614976e7b9687246ceef1a3abd74 to your computer and use it in GitHub Desktop.
Save AldoMX/7e9f614976e7b9687246ceef1a3abd74 to your computer and use it in GitHub Desktop.
Copia MSI de los Smart Statement de Banamex.
setTimeout(
() =>
navigator.clipboard.writeText(
[...document.getElementById("tablaMovimientos").rows]
.filter(({ id, children: [, { innerText: description }] }) => id.startsWith("idexpand") && /\d{3}\s\d{3}\s*$/.test(description))
.map(({ children: [, { innerText: description }, { innerText: amount }] }) => [description, amount].join("\t"))
.join("\n")
),
1000
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment