my code so far
manifest.json
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": ["jquery-3.4.1.min.js", "content.js"]
}
]
content.js
var password = $('input:password');
if (password.length > 0) {
var inputs = $("input");
var index = inputs.index(password);
var username = inputs.eq(index - 1);
console.log({password, username});
}
problem: i just find the input fields directly on the page. if there is a modal with login i'm not able to reach this. how can scan the modal for input fields too?