aram || `https://www.google.com/s2/favicons?sz=128&domain=${encodeURIComponent(host)}`; (document.getElementById('dynamic-favicon') || (()=>{const l=document.createElement('link');l.rel='icon';document.head.appendChild(l);return l;})()).href = faviconUrl; // On-page logo: try the same favicon first, then fallbacks const candidates = [ faviconUrl, // same as tab `https://icons.duckduckgo.com/ip3/${encodeURIComponent(host)}.ico`, `https://${host}/favicon.ico` ].filter(Boolean); document.querySelectorAll('.logo-img').forEach(img => { let i = 0; const tryNext = () => { if (i >= candidates.length) { img.src = faviconUrl; return; } img.src = candidates[i++]; }; img.alt = host + ' logo'; img.onerror = tryNext; tryNext(); }); })();