From 4a32b9b0fdace9523b1bbbd8adc922e0f96245e1 Mon Sep 17 00:00:00 2001 From: Adrian Miesikowski Date: Tue, 17 Feb 2026 23:14:20 +0100 Subject: [PATCH] ux: use registrar-specific domain check links (cyberfolks pattern) --- index.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 1a0b7bb..01d6332 100644 --- a/index.html +++ b/index.html @@ -114,6 +114,18 @@ function best2y(regs, tld){ return b; } +function domainCheckUrl(registrarName, fallbackUrl, domain){ + const d = encodeURIComponent(domain); + const n = (registrarName || '').toLowerCase(); + if(n.includes('cyber')) return `https://cyberfolks.pl/domeny-rejestracja/?slowa=${d}`; + if(n.includes('home.pl')) return `https://home.pl/szukaj/?query=${d}`; + if(n.includes('nazwa')) return `https://www.nazwa.pl/sprawdz-domene/?domain=${d}`; + if(n.includes('ovh')) return `https://www.ovhcloud.com/pl/domains/?domain=${d}`; + if(n.includes('aftermarket')) return `https://aftermarket.pl/szukaj/${d}`; + if(n.includes('porkbun')) return `https://porkbun.com/checkout/search?q=${d}`; + return fallbackUrl || `https://www.whois.com/whois/${d}`; +} + async function loadDomains(){ const q = document.getElementById('q').value.trim(); const tld = document.getElementById('tld').value; @@ -181,7 +193,7 @@ function renderRows(){ for(const d of domains.slice(0,300)){ const two = best2y(registrars,d.tld); const tr = document.createElement('tr'); - const checkUrl = two?.url ? `${two.url}` : `https://www.whois.com/whois/${d.domain}`; + const checkUrl = domainCheckUrl(two?.name, two?.url, d.domain); tr.innerHTML = `${d.domain} ${d.is_new ? `NEW` : ''} .${d.tld} ${d.score}