From d840aa1f70313fd0ef324c1ad3b03a4c9bce02f9 Mon Sep 17 00:00:00 2001 From: moonjuice Date: Wed, 26 Jun 2024 09:14:24 +0000 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8B=95=E5=A1=AB=E5=AF=AB=E5=A7=93?= =?UTF-8?q?=E5=90=8D=E3=80=81=E9=9B=BB=E8=A9=B1=E8=B7=9Femail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pokemon_cafe.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pokemon_cafe.js b/pokemon_cafe.js index 6e1522f..551401e 100644 --- a/pokemon_cafe.js +++ b/pokemon_cafe.js @@ -1,7 +1,7 @@ // ==UserScript== // @name pokemon_cafe_script // @namespace https://git.moonjuice.tw/moonjuice/pokemon_script -// @version 2024-03-07 +// @version 2024-06-26 // @description try to take over the world! // @author moonjuice // @match https://reserve.pokemon-cafe.jp/* @@ -72,6 +72,10 @@ }*/ console.log(GM_getValue('seat')); console.log(GM_getValue('seatId')); + $('input[name=name]')[0].value='name'; + $('input[name=name_kana]')[0].value='name'; + $('input[name=phone_number]')[0].value='phone'; + $('input[name=email]')[0].value='email'; } })(); @@ -102,10 +106,10 @@ function chooseSeat() { seatId = $('.post-link')[0].getAttribute('data-seat-id'); } } else { // osaka => A seat first - var seats_1350 = Array.from($('.post-link')).filter((element) => element.text.includes('13:50')); + //var seats_1350 = Array.from($('.post-link')).filter((element) => element.text.includes('13:50')); /*if (seats_1350.length > 0) { - GM_setValue('seat', seats_1350[0].text); - seatId = seats_1350[0].getAttribute('data-seat-id'); + GM_setValue('seat', seats_1350[0].text); + seatId = seats_1350[0].getAttribute('data-seat-id'); } else*/ if (a_seats.length > 0) { GM_setValue('seat', a_seats[0].text); seatId = a_seats[0].getAttribute('data-seat-id');