// The one thing the directory's pages script (#215): Copy puts a feed's address on the clipboard. // Without it, the address is in a field of its own to select by hand. document.addEventListener('click', ev => { const b = ev.target.closest('[data-copy]'); if (!b || !navigator.clipboard) return; navigator.clipboard.writeText(b.dataset.copy).then(() => { b.textContent = 'Copied'; setTimeout(() => { b.textContent = 'Copy'; }, 1500); }); });