Skip to content

Instantly share code, notes, and snippets.

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