ACSE ISP CHECK

Dodaj do zakładek nową stronę, nazwij ją dowolnie, a kod poniżej wklej jako adres strony. Ważne! Upewnij się, że przy wklejaniu nie zostało wycięte „javascript:” na początku i że skopiowałeś całość (trzykrotny klik).

Jak to działa?

javascript:(function(){function normalizeText(t){if(!t)return'';let c=t.trim().replace(/\b(ul\.?|al\.?|pl\.?|os\.?)\b\.?\s*/gi,'').trim();return c.split(/\s+/).map(w=>w.split('-').map(p=>{const l=p.toLowerCase();return l.charAt(0).toUpperCase()+l.slice(1)}).join('-')).join(' ')}const a=document.querySelectorAll('.customerAddressStreet');if(!a.length){alert('Nie znaleziono żadnych adresów.');return;}const r=Array.from(a).map(e=>{const p=e.closest('p');return{street:normalizeText(p.querySelector('.customerAddressStreet')?.textContent||''),number:(p.querySelector('.customerAddressNumber')?.textContent||'').trim().replace('/',''),flat:(p.querySelector('.customerAddressApartment')?.textContent||'').trim(),postal:(p.querySelector('.customerAddressPostalCode')?.textContent||'').trim().replace(/\s+/g,''),city:normalizeText(p.querySelector('.customerAddressCity')?.textContent||'')}});let s;if(r.length===1)s=r[0];else{const c=r.map((a,i)=>`${i+1}: ${a.street} ${a.number}${a.flat?'/'+a.flat:''}, ${a.postal} ${a.city}`).join('\n');const k=prompt(`Wybierz adres (wpisz numer):\n${c}`);s=r[parseInt(k)-1];if(!s){alert('Nieprawidłowy wybór.');return;}}const m=document.querySelector('[data-target="#modal-coverage-verification"]');if(!m){alert('Nie znaleziono przycisku otwierającego modal.');return;}m.click();const f=()=>{const c=document.querySelector('#addressCity'),st=document.querySelector('#addressStreet'),h=document.querySelector('#house'),fl=document.querySelector('#flat'),p=document.querySelector('#addressPostalCode'),b=Array.from(document.querySelectorAll('button')).find(b=>b.textContent.includes('Sprawdź zasięg'));if(!c||!st||!h||!p||!b){setTimeout(f,300);return;}c.value=s.city;st.value=s.street;h.value=s.number;fl.value=s.flat;p.value=s.postal;[c,st,h,fl,p].forEach(e=>{e.dispatchEvent(new Event('input',{bubbles:true}));e.dispatchEvent(new Event('change',{bubbles:true}))});setTimeout(()=>b.click(),500)};f();})();

Wiele adresów – żaden problem!

Jeżeli kod wykryje różne adresy lub zapisany w różny spsób wyświeli ich listę wpisz numer adresu, który chcesz sprawdzić i kliknij ENTER.

Zacznijmy Twój Projekt

Opowiedz mi o swoim pomyśle, a przygotuję dla Ciebie bezpłatną wycenę.

Napisz
Rozpocznij tutaj
Rozpocznij