Greasy Fork镜像 还支持 简体中文。

YUCHO AUTOCOMPLETE

ゆうちょダイレクト オートコンプリートスクリプト

目前為 2020-08-30 提交的版本,檢視 最新版本

// ==UserScript==
// @name         YUCHO AUTOCOMPLETE
// @namespace    https://ci7l.us
// @version      0.3
// @description  ゆうちょダイレクト オートコンプリートスクリプト
// @author       ci7l
// @match        https://*.jp-bank.japanpost.jp/*
// @grant        none
// @license      MIT
// @copyright    Copyright (c) 2020 ci7lus
// ==/UserScript==

((window) => {
  "use strict";
  const title = window.document.querySelector('form[name="submitData"]');
  if (title) {
    const dummyInput = window.document.createElement("input");
    dummyInput.type = "text";
    dummyInput.name = "username";
    dummyInput.autocomplete = true;
    dummyInput.style = "width: 1px;height: 1px;";
    dummyInput.addEventListener("change", (e) => {
      e.target.value.split("-").map((value, idx) => {
        window.document.querySelector(
          `input[name="okyakusamaBangou${idx + 1}"]`
        ).value = value;
      });
    });
    title.insertAdjacentElement("beforeBegin", dummyInput);
  }
})(window.unsafeWindow || window);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址