Skip to content

Instantly share code, notes, and snippets.

View Crecket's full-sized avatar
:electron:
Building Windows 12 with Electron

Gregory Goijaerts Crecket

:electron:
Building Windows 12 with Electron
View GitHub Profile
@Crecket
Crecket / add-bunq-option.js
Last active May 14, 2019 12:18
Adds a 'bunq' option to any select field which already contains an option containing ASN or ING.
const bunqOption = document.createElement("option");
bunqOption.appendChild(document.createTextNode("bunq"));
bunqOption.value = "BUNQNL2A";
document.querySelectorAll("select").forEach(select => {
const options = document.querySelectorAll(`#${select.id} option`);
let hasBankCode = false;
options.forEach(option => {
if (option.value && option.value.includes("ING")) hasBankCode = true;

Keybase proof

I hereby claim:

  • I am crecket on github.
  • I am crecket (https://keybase.io/crecket) on keybase.
  • I have a public key whose fingerprint is E891 777E 416F 95E9 6690 1FCE 753F 2E4E 98F2 9AE3

To claim this, I am signing this object: