const tverUrl = 'https://tver.jp/series/srky9b57px'; const abemaUrl = 'https://abema.tv/video/title/871-334'; const telasaUrl = 'https://navi.telasa.jp/'; const unextUrl = 'https://video.unext.jp/title/SID0179827?rid=OF00953&adid=XXX&utm_source=content&utm_medium=official&utm_campaign=official&utm_content=SID0179827'; const primevideoUrl = 'https://www.amazon.co.jp/gp/video/detail/B0F2XHKFQB/ref=atv_dp_share_cu_r'; const xAccount = 'abcdrama_hero'; const instagramAccount = 'abcdrama_hero'; const tiktokAccount = 'mydiary_abc'; const lineAccount = 'a3mKfaf'; const youtubeAccount = 'abcasahi'; /* 見逃しバナー */ if (document.getElementById('missed_bnr')) { const missed_bnr = document.getElementById('missed_bnr'); missed_bnr.insertAdjacentHTML('afterbegin', '' + '
' ); } /* URLを反映 */ function updateLinks(selector, newUrl){ const links = document.querySelectorAll(selector); links.forEach(link => { link.href = newUrl; }) } updateLinks('.js-replaceTverUrl',tverUrl); updateLinks('.js-replaceAbemaUrl',abemaUrl); updateLinks('.js-replaceTelasaUrl',telasaUrl); updateLinks('.js-replaceUnextUrl',unextUrl); updateLinks('.js-replacePrimevideoUrl',primevideoUrl);@' + tiktokAccount + '