diff --git a/dist/etc-meisai-shortcuts.user.js b/dist/etc-meisai-shortcuts.user.js index c193bf4..f41273b 100644 --- a/dist/etc-meisai-shortcuts.user.js +++ b/dist/etc-meisai-shortcuts.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name ETC利用照会サービス - Shortcut keys // @namespace mkobayashime -// @version 1.2.2 +// @version 2.0.0 // @description ETC利用照会サービスに h/l などのショートカットキーを追加します // @author mkobayashime // @homepage https://github.com/mkobayashime/userscripts @@ -26,7 +26,7 @@ const isTyping = () => { if (isTyping()) return; if (e.key === "h" || e.key === "ArrowLeft") { const prevPageButton = document.evaluate( - "//button[contains(text(), '前頁')]", + "//button[contains(text(), '前月')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, @@ -37,7 +37,7 @@ const isTyping = () => { } if (e.key === "l" || e.key === "ArrowRight") { const nextPageButton = document.evaluate( - "//button[contains(text(), '次頁')]", + "//button[contains(text(), '翌月')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, diff --git a/src/userscripts/etc-meisai-shortcuts.user.ts b/src/userscripts/etc-meisai-shortcuts.user.ts index a9c84e8..e0958cf 100644 --- a/src/userscripts/etc-meisai-shortcuts.user.ts +++ b/src/userscripts/etc-meisai-shortcuts.user.ts @@ -6,7 +6,7 @@ import { isTyping } from "./utils/isTyping"; if (e.key === "h" || e.key === "ArrowLeft") { const prevPageButton = document.evaluate( - "//button[contains(text(), '前頁')]", + "//button[contains(text(), '前月')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, @@ -19,7 +19,7 @@ import { isTyping } from "./utils/isTyping"; if (e.key === "l" || e.key === "ArrowRight") { const nextPageButton = document.evaluate( - "//button[contains(text(), '次頁')]", + "//button[contains(text(), '翌月')]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, diff --git a/src/userscripts/meta/index.ts b/src/userscripts/meta/index.ts index a0f5b9d..0bd5b32 100644 --- a/src/userscripts/meta/index.ts +++ b/src/userscripts/meta/index.ts @@ -38,7 +38,7 @@ export const meta: { [name: string]: UserScriptMeta | undefined } = { match: "https://www2.etc-meisai.jp/etc/*", name: "ETC利用照会サービス - Shortcut keys", runAt: "document-end", - version: "1.2.2", + version: "2.0.0", }, "freee-shortcuts": { description: "freee にショートカットキーを追加します",