Last active
June 19, 2023 10:23
-
-
Save watasuke102/3b9833e06774ecf487da9cd9c6f3fa34 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
/* | |
DMM英会話において、プロンプトで指定した時刻に予約できる講師を表示 | |
プラスネイティブ限定講師は除外 | |
javascript:void( (() => {const input = window.prompt('time (HH:MM)');const time = input.match(/^(\d\d):(\d\d)$/);if (time === null || time.length !== 3) {window.alert('Invalid type');return;}const time_str = `${time[1]}:${time[2]}`;window.location.href = `https://eikaiwa.dmm.com/list/?data[tab1][lesson_language]=en&data[tab1][start_time]=${time_str}&data[tab1][end_time]=${time_str}&data[tab1][standard_teachers]=on&data[tab1][country]=1,3,4,5,6,10,12,13,14,16,17,18,21,22,23,24,27,28,29,31,32,35,36,37,38,39,40,41,42,43,44,47,48,49,50,52,53,56,57,59,60,61,62,63,64,65,70,72,77,78,79,81,83,84,85,86,88,91,93,94,95,97,98,99,100,101,102,103,104,105,106,107,108,109,111,112,113,114,115,116,117,118,120,121,123,124,128,129,131,132,133,134,136,137,140,157,158,166,174,175,177,183,197,198,200,205,209,211,214`;})() ) | |
*/ | |
const input = window.prompt('time (HH:MM)'); | |
const time = input.match(/^(\d\d):(\d\d)$/); | |
if (time === null || time.length !== 3) { | |
window.alert('Invalid type'); | |
return; | |
} | |
const time_str = `${time[1]}:${time[2]}`; | |
window.location.href = `https://eikaiwa.dmm.com/list/?data[tab1][lesson_language]=en&data[tab1][start_time]=${time_str}&data[tab1][end_time]=${time_str}&data[tab1][standard_teachers]=on&data[tab1][country]=1,3,4,5,6,10,12,13,14,16,17,18,21,22,23,24,27,28,29,31,32,35,36,37,38,39,40,41,42,43,44,47,48,49,50,52,53,56,57,59,60,61,62,63,64,65,70,72,77,78,79,81,83,84,85,86,88,91,93,94,95,97,98,99,100,101,102,103,104,105,106,107,108,109,111,112,113,114,115,116,117,118,120,121,123,124,128,129,131,132,133,134,136,137,140,157,158,166,174,175,177,183,197,198,200,205,209,211,214`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment