じぶん銀行のログイン
var jibun_login = function( id , password){ | |
// id is like "57114-12345" | |
var crn = id.split(/-/); | |
var inputs = Array.apply(null, document.querySelectorAll("input[name^=fldLoginUserCRN]")); | |
var list = crn.map(function(e, i) {return [e, inputs[i]];}); | |
list.forEach(function(e) {e[1].value = e[0]}); | |
document.querySelector("input[type=password]").value = password; | |
document.querySelector("a[id=idLogon].btn").click(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment