Created
April 23, 2019 08:40
-
-
Save takuya/d9a1e5c6fad4d8807f78ba8ed62777e0 to your computer and use it in GitHub Desktop.
じぶん銀行のログイン
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
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