<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel rdf:about="https://let.hatelabo.jp/moegg/rss">
    <link>https://let.hatelabo.jp/moegg/rss</link>
    <description></description>
    <title>Bookmarklets from moegg</title>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="https://let.hatelabo.jp/moegg/let/la_NrIaYgMAA"/>
      </rdf:Seq>
    </items>
  </channel>
  <item rdf:about="https://let.hatelabo.jp/moegg/let/la_NrIaYgMAA">
    <link>https://let.hatelabo.jp/moegg/let/la_NrIaYgMAA</link>
    <dc:date>2026-08-20T14:43:07Z</dc:date>
    <description>my bookmarklet</description>
    <dc:creator>moegg</dc:creator>
    <title>[Let] ベネフィットステーションのすくすくファミリーサポートお申込み内容入力</title>
    <content:encoded>&lt;a href="javascript:%22https%3A%2F%2Flet.st-hatelabo.com%2Fmoegg%2Flet%2Fla_NrIaYgMAA.bookmarklet.js%20%28arg%29%22.replace%28%2F%28%5CS%2B%29%5Cs%2B%28%5CS%2A%29%2F%2Cfunction%28s%2Curl%2Carg%29%7Bs%3Ddocument.createElement%28%22script%22%29%3Bs.charset%3D%22utf-8%22%3Bs.src%3Durl%2B%22%3Fs%3D%22%2BencodeURIComponent%28arg%29%3Bdocument.body.appendChild%28s%29%7D%29%3Bvoid%280%29%3B"&gt;ベネフィットステーションのすくすくファミリーサポートお申込み内容入力&lt;/a&gt;&lt;pre&gt;/*
 * @title ベネフィットステーションのすくすくファミリーサポートお申込み内容入力
 * @description my bookmarklet
 * @include http://*
 * @license MIT License
 * @require 
 */

javascript:(function(){
  // --- 設定項目（【】の中身をご自身の情報に変更してください） ---
  const config = {
    childName: &amp;quot;【お子様名】&amp;quot;,
    birthYear: &amp;quot;【2020】&amp;quot;,
    birthMonth: &amp;quot;【4】&amp;quot;,
    birthDay: &amp;quot;【1】&amp;quot;,
    pref: &amp;quot;【東京都】&amp;quot;,
    officeName: &amp;quot;【○○ファミリー・サポート・センター】&amp;quot;,
    bankCode: &amp;quot;【0001】&amp;quot;,
    bankName: &amp;quot;【ｷﾞﾝｺｳﾒｲ】&amp;quot;,
    branchCode: &amp;quot;【001】&amp;quot;,
    branchName: &amp;quot;【ｼﾃﾝﾒｲ】&amp;quot;,
    accountNo: &amp;quot;【1234567】&amp;quot;,
    accountHolder: &amp;quot;【ｺｳｻﾞ ﾒｲｷﾞ】&amp;quot;
  };

  // --- 実行日の「前月」を自動計算 ---
  const now = new Date();
  now.setMonth(now.getMonth() - 1);
  const prevMonthVal = String(now.getMonth() + 1);

  // --- Vue / HTML5 イベント発火付きの入力セット関数 ---
  const setNativeVal = (el, val) =&amp;gt; {
    if (!el) return;
    const proto = Object.getPrototypeOf(el);
    const setter = Object.getOwnPropertyDescriptor(proto, 'value')?.set || Object.getOwnPropertyDescriptor(el, 'value')?.set;
    if (setter) {
      setter.call(el, val);
    } else {
      el.value = val;
    }
    el.dispatchEvent(new Event('input', { bubbles: true }));
    el.dispatchEvent(new Event('change', { bubbles: true }));
  };

  // 1. ラジオボタン選択（「はい」をチェック）
  document.querySelectorAll('input[type=&amp;quot;radio&amp;quot;]').forEach(radio =&amp;gt; {
    const label = radio.closest('label') || radio.parentElement;
    if (label &amp;amp;&amp;amp; label.innerText.includes('はい')) {
      radio.checked = true;
      radio.dispatchEvent(new Event('change', { bubbles: true }));
    }
  });

  // 2. テキストエリア項目の一括入力
  const textareas = Array.from(document.querySelectorAll('textarea'));
  const textVals = [
    config.childName,
    config.pref,
    config.officeName,
    config.bankCode,
    config.bankName,
    config.branchCode,
    config.branchName,
    config.accountNo,
    config.accountHolder
  ];

  textareas.forEach((ta, idx) =&amp;gt; {
    if (textVals[idx] !== undefined) {
      setNativeVal(ta, textVals[idx]);
    }
  });

  // 3. セレクトボックス（生年月日・ご利用月）の選択
  const selects = Array.from(document.querySelectorAll('select'));
  if (selects.length &amp;gt;= 4) {
    const setSelectVal = (selectEl, val) =&amp;gt; {
      const targetOpt = Array.from(selectEl.options).find(o =&amp;gt; 
        o.value === String(val) || 
        o.text.includes(String(val) + '月') || 
        o.text.includes(String(val) + ' 年') || 
        o.text.includes(String(val) + ' 日')
      );
      if (targetOpt) {
        setNativeVal(selectEl, targetOpt.value);
      }
    };

    setSelectVal(selects[0], config.birthYear);
    setSelectVal(selects[1], config.birthMonth);
    setSelectVal(selects[2], config.birthDay);
    setSelectVal(selects[3], prevMonthVal);
  }

  alert('入力完了（ご利用月: ' + prevMonthVal + '月）');
})();
&lt;/pre&gt;</content:encoded>
  </item>
</rdf:RDF>
