Skip to content

Instantly share code, notes, and snippets.

@ecormaksin
Last active February 11, 2022 13:43
Show Gist options
  • Save ecormaksin/21272e4ccd5cff3c2d6ef160ed0a86d5 to your computer and use it in GitHub Desktop.
Save ecormaksin/21272e4ccd5cff3c2d6ef160ed0a86d5 to your computer and use it in GitHub Desktop.
受付システム・e-Taxログイン自動入力
setValue('#maskat_widget_dojo_43', '利用者識別番号1ブロック目');
setValue('#maskat_widget_dojo_44', '利用者識別番号2ブロック目');
setValue('#maskat_widget_dojo_45', '利用者識別番号3ブロック目');
setValue('#maskat_widget_dojo_46', '利用者識別番号4ブロック目');
setValue('#maskat_widget_dojo_55', 'パスワード');
function setValue(selector, value) {
var element = document.querySelector(selector);
element.value = value;
}
var button = document.querySelector('#maskat_widget_dojo_30 > div.dijitDialogPaneContent > div:nth-child(12) > a');
button.click();
setValue('#oStInputUserId_1', '利用者識別番号1ブロック目');
setValue('#oStInputUserId_2', '利用者識別番号2ブロック目');
setValue('#oStInputUserId_3', '利用者識別番号3ブロック目');
setValue('#oStInputUserId_4', '利用者識別番号4ブロック目');
setValue('#oStInputPwd', 'パスワード');
function setValue(selector, value) {
var element = document.querySelector(selector);
element.value = value;
}
var button = document.querySelector('#XAC090 > p > input.button.important.login');
button.click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment