Created
August 2, 2024 12:49
-
-
Save maciekmm/fec27301412194a9642df4822240fd94 to your computer and use it in GitHub Desktop.
A bookmarklet to input Pekao password from password manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: function c() { | |
const passwd = prompt(); | |
Array.from(document.querySelectorAll(".masked-input-wrapper input:not([disabled])")) | |
.forEach(input => { | |
let index = Number(input.id.split("-").pop()); | |
input.value = passwd[index]; | |
let event = new Event('input', { | |
bubbles: true, | |
cancelable: true, | |
}); | |
input.dispatchEvent(event); | |
}); | |
}; c() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment