YUCHO AUTOCOMPLETE

ゆうちょダイレクト オートコンプリートスクリプト https://gf.qytechs.cn/ja/scripts/390584-yucho-autocomplete

当前为 2020-06-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         YUCHO AUTOCOMPLETE
// @namespace    https://ci7l.us
// @version      0.2
// @description  ゆうちょダイレクト オートコンプリートスクリプト https://gf.qytechs.cn/ja/scripts/390584-yucho-autocomplete
// @author       ci7l
// @match        https://direct.jp-bank.japanpost.jp/*
// @grant        none
// ==/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或关注我们的公众号极客氢云获取最新地址