let urls = [...document.links] .filter(a => a.textContent.trim().startsWith('View Item')) .map(a => a.href); [...new Set(urls)];