const currentUrl = document.location.href; if (currentUrl.startsWith('https://mapy.geoportal.gov.pl/')) { // Execute code specific to the example.com website console.log('This is the example.com website.'); } else { // Execute default code console.log('This is a different website.'); }