タイトルとURLをコピーしました
document.addEventListener('DOMContentLoaded', (event) => { const links = document.getElementsByTagName('a'); const currentUrl = window.location.href; for(let i=0; i < links.length; i++){ const link = links[i]; if (link.hostname.includes('cir.io')) { const newHref = link.href + '?cx_referrer=' + encodeURIComponent(currentUrl); link.href = newHref; } } });