// Function to fetch the blocked message and replace the content function fetchBlockedMessage() { var xhr = new XMLHttpRequest(); xhr.open("GET", "blocked-message.html", true); // Path to the blocked message HTML file xhr.onreadystatechange = function() { if (xhr.readyState == 4 && xhr.status == 200) { // Replace the content with the fetched blocked message document.body.innerHTML = xhr.responseText; } }; xhr.send(); } // Delay the execution after 3 seconds of page load setTimeout(checkDomain, 3000);
Skip to content