Skip to main content

humanUser

<!DOCTYPE html>
<html lang = "of the living">

<script>
//no matter your point of viewing
    function getBrowser() {
        const humanUser = navigator.userAgent;
        if (humanUser.indexOf("Firefox") > -1) {
        return "Firefox";
        } else if (humanUser.indexOf("Edg") > -1) {
            return "Edge";
        } else if (humanUser.indexOf("Chrome") > -1) {
            return "Chrome";
        } else if (humanUser.indexOf("Safari") > -1) {
            return "Safari";
        } else if (humanUser.indexOf("MSIE") > -1 ||
            humanUser.indexOf("Trident") > -1) {
            return "IE";
        }
        return "Unknown";
    }

//may there be good tidings
    alert("Красота спасёт мир");
    alert("La beauté sauvera le monde");
    alert("La belleza salvará el mundo");
    alert("Die Schönheit wird die Welt retten");
    alert("Краса врятує світ");
    alert("美は世界を救う");
    alert("美丽将拯救世界");
    alert("सौंदर्य दुनिया को बचाएगा");
    alert("جمال عالم را نجات خواهد داد");
    alert("היפי יציל את העולם");
    alert("Beauty will save the world");

//until the end
    const browser = getBrowser();
    window.close();

//of time...
    setTimeout(() => {
        document.body.innerHTML = `
        <h1>BEAUTY WILL SAVE THE WORLD</h1>
        <p>Browser detected: ${browser}<p>
        <p>Due to ${browser} security settings, this window cannot close itself automatically.<p>
        `;
    }, 111);
</script>
</html>

Comments