{"product_id":"テスト","title":"【変更オプション】Microsoft Office Home＆Business 2024（永続版）","description":"\u003cscript\u003e\n(function () {\n  const LINK_TEXT = '返金保証について';\n  const LINK_URL = 'https:\/\/pcnext.shop\/policies\/refund-policy';\n\n  function applyRefundPolicyLink() {\n    const rows = document.querySelectorAll('tr');\n\n    for (const row of rows) {\n      const th = row.querySelector('th');\n      const td = row.querySelector('td');\n\n      if (!th || !td) continue;\n\n      \/\/ th が「その他」の行だけ対象\n      if (th.textContent.replace(\/\\s\/g, '') !== 'その他') continue;\n\n      const tdText = td.textContent || '';\n      const normalizedText = tdText.replace(\/\\s\/g, '');\n\n      \/\/ 対象のtdだけに限定\n      if (!normalizedText.includes('単体注文不可')) continue;\n      if (!normalizedText.includes('本製品はソフトウェアのため返品不可')) continue;\n      if (!normalizedText.includes(LINK_TEXT)) continue;\n\n      \/\/ 二重適用防止\n      if (td.querySelector('a[href=\"' + LINK_URL + '\"]')) {\n        return true;\n      }\n\n      const index = tdText.indexOf(LINK_TEXT);\n      if (index === -1) continue;\n\n      const beforeText = tdText.slice(0, index);\n      const afterText = tdText.slice(index + LINK_TEXT.length);\n\n      const link = document.createElement('a');\n      link.href = LINK_URL;\n      link.textContent = LINK_TEXT;\n      link.style.textDecoration = 'underline';\n\n      \/\/ tdの中身を再構築\n      td.innerHTML = '';\n      td.appendChild(document.createTextNode(beforeText));\n      td.appendChild(link);\n      td.appendChild(document.createTextNode(afterText));\n\n      return true;\n    }\n\n    return false;\n  }\n\n  function start() {\n    \/\/ まず即時実行\n    if (applyRefundPolicyLink()) return;\n\n    \/\/ 後から描画される場合に備えて監視\n    const observer = new MutationObserver(function () {\n      if (applyRefundPolicyLink()) {\n        observer.disconnect();\n      }\n    });\n\n    observer.observe(document.body, {\n      childList: true,\n      subtree: true\n    });\n\n    \/\/ 保険として一定時間リトライ\n    const timer = setInterval(function () {\n      if (applyRefundPolicyLink()) {\n        clearInterval(timer);\n        observer.disconnect();\n      }\n    }, 300);\n\n    setTimeout(function () {\n      clearInterval(timer);\n      observer.disconnect();\n    }, 10000);\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', start);\n  } else {\n    start();\n  }\n})();\n\u003c\/script\u003e","brand":"PC next","offers":[{"title":"Default Title","offer_id":49149069721837,"sku":null,"price":30000.0,"currency_code":"JPY","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0462\/2424\/4903\/files\/MS2024_omote.png?v=1783309172","url":"https:\/\/pcnext.shop\/products\/%e3%83%86%e3%82%b9%e3%83%88","provider":"安心の中古パソコンならPC next","version":"1.0","type":"link"}