Created
March 12, 2019 04:59
-
-
Save kaz-utashiro/186db840404cd61f82b530bfcee83f09 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
javascript: { | |
const info = new Map([ | |
[ 'HNAME', 'ホテルサザンコースト宮古島' ], | |
[ 'HTEL', '0980-75-3335' ], | |
[ 'ARRDATEY', '2019' ], | |
[ 'ARRDATEM', '4' ], | |
[ 'ARRDATED', '12' ], | |
[ 'DPTDATEY', '2019' ], | |
[ 'DPTDATEM', '4' ], | |
[ 'DPTDATED', '16' ] | |
]); | |
for (const [key, value] of info) { | |
document.getElementsByName(key)[0].value = value; | |
} | |
document.getElementsByName('STEL2')[0].focus(); | |
void(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment