aboutsummaryrefslogtreecommitdiff
path: root/static/js/shared/headerEasterEggs.js
blob: c2a27ac170f3506827db7020f508760b5974f1c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
let FACounter = 0
let timesFA = document.getElementById('timesFA')
const lang = document.documentElement.lang
const FUpMessages = (FACounter) => {
    if (lang === 'ja') {
        if (FACounter === 0) return "おい!引っ込んでろ、クソ野郎!"
        if (FACounter === 4) return "やんのかコラ、このクソガキが!"
        if (FACounter === 9) return "まだ調子こいてんのか、このクソ野郎?"
        if (FACounter === 14) return "しつこいんだよ、このゴミクズ野郎!さっさと消えろ!"
        if (FACounter === 19) return "マジでウザい!ヘルペスかよ、消えねぇな!"
        if (FACounter === 24) return "もう勘弁。さっさと死ね、このクソ無駄酸素野郎。"
        if (FACounter === 41) return "おめでとう、人生の意味を見つけたな:俺をイラつかせることだ!"
        if (FACounter === 49) return "50回も?マジで親に愛されなかったの?"
        if (FACounter === 68) return "ナイス。現実でヤレよ、このスケベ野郎。"
        if (FACounter === 99) return "3桁?お前、特別なクソ野郎だな。"
        if (FACounter === 419) return "4:20でクソ燻ってろ、このバカチョン野郎。"
        if (FACounter % 1000 === 999) return "1000回?指が腐って落ちちまえ、このキチガイ野郎!"
        if (FACounter % 500 === 499) return "マジでクソ人生見つけろよ!ゴミ箱でも漁ってろ!"
        if (FACounter % 100 === 99) return "また100回?お前の精神科医、ウハウハだぞ!"
        if (FACounter > 4999) return "クリックし続けろよ、バーカ。お前の悲しい人生の穴埋めになるさ。"
    } else {
        // Original English messages
        if (FACounter === 0) return "Hey! Back off, fuckface!"
        if (FACounter === 4) return "Don't you fucking dare, you little shit!"
        if (FACounter === 9) return "Haven't you fucked around enough, you absolute wankstain?"
        if (FACounter === 14) return "Aren't you a relentless cockwomble? Fuck off already!"
        if (FACounter === 19) return "Fucking hell, you're like herpes - just won't go away!"
        if (FACounter === 24) return "I'm done. Go play in traffic, you waste of oxygen."
        if (FACounter === 41) return "Congrats, you've found the meaning of life: being a colossal pain in my ass!"
        if (FACounter === 49) return "Half a hundred clicks? Did your parents not hug you enough?"
        if (FACounter === 68) return "Nice. Now go get laid for real, you horny bastard."
        if (FACounter === 99) return "Triple digits? You're a special kind of fucked up, aren't you?"
        if (FACounter === 419) return "Blaze it and fuck off, you stoner dipshit."
        if (FACounter % 1000 === 999) return "A thousand clicks? I hope your finger falls off, you absolute lunatic!"
        if (FACounter % 500 === 499) return "Jesus fucking Christ, get a life or I'll find one for you in a dumpster!"
        if (FACounter % 100 === 99) return "Another hundred? Your therapist is getting rich off your issues!"
        if (FACounter > 4999) return "Keep clicking, fuckface. I'm sure it'll fill the void in your pathetic life."
    }
}

function dontYouDare(event) {
    if (timesFA.parentElement.style.display === 'none') {
        timesFA.parentElement.style.display = 'block'
    }

    const previousFAButton = document.getElementById('FAButton')
    if (previousFAButton) {
        document.body.removeChild(previousFAButton)
    }
    const FAButton = document.createElement('div')
    FAButton.id = 'FAButton'
    FAButton.textContent = FUpMessages(FACounter)

    if (FAButton.textContent) {
        applyStyles(event.clientX, event.clientY, FAButton)
        document.body.appendChild(FAButton)
    }
    FACounter += 1
    timesFA.innerText = FACounter
    setTimeout(() => {
        FAButton.style.opacity = 0
        setTimeout(() => {
            try {
                document.body.removeChild(FAButton)
            } catch {
                // pass
            }
        }, 100)
    }, 6000)
}

function applyStyles(x, y, container) {
    container.style.position = 'absolute'
    container.style.top = `${y}px`
    container.style.left = `${x}px`
    container.style.fontSize = '11px'
    container.style.userSelect = 'none'
    container.style.transition = 'opacity 0.5s ease-in-out'
    container.style.textShadow = '0 0 2px #e014df, 0 0 4px #e014df, 0 0 6px #e014df, 0 0 10px #ff00ff, 0 0 14px #ff00ff'
    container.style.color = '#ffffff'
    container.style.backgroundColor = '#8a0885'
    container.style.padding = '4px 8px'
    container.style.border = '1px solid #e014df'
    container.style.borderRadius = '2px'
    container.style.fontWeight = 'bold'
    container.style.zIndex = 1
}

function leaveWebsite() {
    const question = lang === 'ja'
        ? '臆病者の選択か!無効なボタンをクリックしようとしてるのか。一度だけ付き合ってやるよ!本当に出て行くのか?'
        : 'Ah, the choice of cowardice! Even trying to click on the disabled button. Let me humour you for once! Are you sure you want to leave?'

    if (confirm(question)) {
        alert(lang === 'ja' ? '精神的に弱いクソ野郎め!' : 'Mentally Weak Coward!')
    }
}

function stopAndPlayPresentDay() {
    const audio = document.getElementById('presentDayAudio')
    audio.currentTime = 0
    audio.play()
}