Skip to content

Instantly share code, notes, and snippets.

@satyamedh
Created December 24, 2024 14:01
Show Gist options
  • Select an option

  • Save satyamedh/3da1ebcebddab58b3aa2b11a5fd89039 to your computer and use it in GitHub Desktop.

Select an option

Save satyamedh/3da1ebcebddab58b3aa2b11a5fd89039 to your computer and use it in GitHub Desktop.
(function (_0x19e3ae, _0x300f05) {
const _0x308efe = _0x19e3ae();
while (true) {
try {
const _0x417d33 = parseInt(_0x2e93(575, 0x163)) * (-parseInt(_0x2e93(617, 0x19e)) / 2) + -parseInt(_0x2e93(369, 0x65)) / 3 + parseInt(_0x2e93(477, 0xa4)) / 4 * (parseInt(_0x2e93(483, 0x1bd)) / 5) + -parseInt(_0x2e93(318, -0x39)) / 6 * (parseInt(_0x2e93(476, 0xa4)) / 7) + -parseInt(_0x2e93(363, -0x6)) / 8 * (-parseInt(_0x2e93(660, 0x254)) / 9) + -parseInt(_0x2e93(533, 0x116)) / 10 + parseInt(_0x2e93(556, 0x212)) / 11;
if (_0x417d33 === _0x300f05) {
break;
} else {
_0x308efe.push(_0x308efe.shift());
}
} catch (_0x5c64c8) {
_0x308efe.push(_0x308efe.shift());
}
}
})(_0x41c3, 732251);
function _0x41c3() {
const _0x4dc3e0 = ["lmhvjfvmxv", "bNQsF", "lVhhv", "wfBKj", "wiYlq", "JUST ONE M", "ainer {\n ", "chain", "HybNa", ");\n ", "classList", "d=xmas", "qFNgT", "xiVAG", "0|2", "ACQXZ", "Gxyun", "width", "\n ", ": fixed;\n ", "body", "QMTuY", ";\n ", "lihvvmxlmh", "string", "InMgN", "NWFmM", "fmulihvvmx", "fontFamily", "mVWiN", "ius: 50%;\n", ": 100%;\n ", " position:", "AKxLt", "qyCSI", "uVldd", "querySelec", "wCdkz", "image-cont", "e URL", "7493850IhRLLM", "stener", "url", "px;\n ", "dRIcX", "border-rad", "eft: 0;\n ", "abeBR", "rebirth-te", "0%, -50%) ", ".page-text", "QLdLo", "/content?i", "w: hidden;", "getItem", "BFjZX", "apply", "background", "rUqDF", "Error fetc", "th-text {\n", "FCLUz", "animationC", "24443177yqJJTm", "top", " z-in", "VYIyX", "mNqvS", "<img src=\"", "BplIh", "length", "bMvJA", "true", "rKNqb", "0%;\n ", "0|3|6|2|1|", "CFGcY", "FcGDv", "$]*)", "setItem", "ZYAUx", "QMIiW", "209nNpgyt", "none", "RsJyw", "age", "center;\n ", "hbFkN", "xt-shadow:", "push", "Failed to ", "scale(0);\n", " width", "error", "t center);", " tran", "fgnoh", "zZjlG", "FmfIV", "toString", " obje", "-=0.3", "\n .", "init", "ver;\n ", ".image-con", "JMayq", "mily: 'kiv", "0-9a-zA-Z_", "nsform: tr", " overflo", " z-index", "AlmAQ", "#306635", "WuvNX", "tDVcH", "ct-fit: co", "OboBM", "appendChil", "uXHOV", "circle {\n ", "tainer img", "NzMDg", "aQAJI", "13114eFmQcX", " ", "ent", " .rebir", "Loaded", "\\( *\\)", "DAYS!", "position: ", "QLdPX", "irkEA", " }\n", "MRXMs", "rVKyQ", " font-fa", "eFslm", "FzKeV", "obhvI", "xmbEg", "split", "r>[2025]", " 0px 3px 0", "EwFLm", "cpHZU", "textConten", " }\n\n ", "click", "tListener", "onComplete", "\n\n ", "size: 40px", "HdYGF", "qIsFo", "duration", "NUjPT", "Error load", "head", "HDbVb", "tor", "unlocked", "forEach", "fetch imag", "op: 0;\n ", "vlfHx", "9TksFKW", "PCqmh", "/home", "FDHxa", "fade-out", "7|4|9|8|10", "MmuSG", "vw;\n ", "omplete", "json", "ybJHg", "%, -50%);\n", "test", "ainer", "nKtfW", "AxalU", "toOvl", "bobpB", "cNDMo", "ing backgr", "wemvz", "scale", "ERsmS", "kzivulifmu", "AebhM", " t", "ORE CLICK?", "height: 10", "\n }", "2277384zsmToH", "% at cente", "text-red", "nslate(-50", "ZCvjq", "qeyVZ", "xmLtz", "doAFg", "fzboc", "ht: 100vh;", "KiYes", "width: 100", "qeRlg", " tra", "circle(150", "CfJQt", "addEventLi", "vYNCr", " left: 5", " top: 50%", "beEFx", " 0, 0, 0.9", "y: 0;\n ", "power2.inO", "fZzTq", "AUEGN", "FTINh", "DOMContent", "a-zA-Z_$][", "ZGngu", "r-events: ", "egbyy", "constructo", "UdyQQ", "jFCPP", "gXMHk", "dex: 10;\n ", "innerHTML", " z-", "evFNt", "kivkzivuli", "qeYhj", " color: w", "-path: cir", " pointe", "10533112vubaeJ", " pointer-", "8|6|0|1|2|", "10|3|7|9|5", "nJFdy", " position", "2468319SpFGys", "100vw", " te", "raMFJ", "borderRadi", "ywiud", "-=0.25", "ne;\n ", "ldSTT", "sqCZN", "IPrQJ", "div", "hing messa", "zqIUi", "rxawp", "Image", "kfOnw", "CtjoR", "then", "sFrTA", "PECT ME.<b", "nPAWM", "xBabB", "input", "REBORN. EX", "axoWN", "left", "ease", "WOCtv", "ge:", "1|4|5|6|3|", " left: ", "dHjFJ", "(((.+)+)+)", "inter-even", "fixed;\n ", "YXokY", "crjPM", "LYnGW", "power2.in", ": 11;\n ", "ovuLb", "luwFj", "xt-align: ", "dbLCi", "I WILL BE ", "Color", " monospace", "timeline", "VmItA", " top: 50%;", "JrjdH", "transform", "rJdwc", "tzgnL", "NfsGf", "fYmmo", "klMDa", "ts: none;\n", "add", "remove", "style", "100vh", "height", "function *", " 1;\n ", "hite;\n ", "px rgba(0,", "UQYQS", "HWfdX", " clip", "cle(25px a", "CktQY", "fetch mess", "kKFDz", " opacit", "2|3", "hVAYA", " heig", "\n ", "circle", "PCRXz", "ZtTLT", "none;\n ", "search", "UaVky", "zdayQ", "GeTro", "opacity", "rJsgi", "secrets", "animatione", " l", "YkoaL", "display", "AhbHd", "wIbno", "VXIuA", "QqXIB", "ound image", "block", "hQjZV", "className", " po", "mrsTF", "removeEven", " fixed;\n ", "21Lwqqnt", "1274768vqtbHN", "FIXCO", "sform: tra", "vjfvmxvh',", "taIKx", "HXjpY", "20vJGLTt", "fade-in", "red", "index: 15;", "llrOP", " opacity:", "1|6|0|4|5|", "\\+\\+ *(?:[", "kusNw", "createElem"];
_0x41c3 = function () {
return _0x4dc3e0;
};
return _0x41c3();
}
function _0x3bae73(_0x27ba55, _0x36802f, _0x564ab6, _0x3344f3) {
return _0x2e93(_0x27ba55 - 0x256, _0x564ab6);
}
const _0x205b10 = function () {
let _0xb01bda = true;
return function (_0x50ae4c, _0x924376) {
const _0x1bc9a1 = _0xb01bda ? function () {
if (_0x924376) {
const _0x260012 = _0x924376.apply(_0x50ae4c, arguments);
_0x924376 = null;
return _0x260012;
}
} : function () {};
_0xb01bda = false;
return _0x1bc9a1;
};
}();
function _0x298ad7(_0x4c6a2b, _0x5f375f, _0xaa3ffb, _0x60e0dd) {
return _0x2e93(_0x60e0dd - 0x332, _0x5f375f);
}
const _0x269a57 = _0x205b10(this, function () {
return _0x269a57.toString().search("(((.+)+)+)+$").toString().constructor(_0x269a57).search("(((.+)+)+)+$");
});
function _0x2e93(_0x205b10, _0x41c32d) {
const _0x2e93d7 = _0x41c3();
_0x2e93 = function (_0x5769b9, _0x469c08) {
_0x5769b9 = _0x5769b9 - 312;
let _0x20f08f = _0x2e93d7[_0x5769b9];
return _0x20f08f;
};
return _0x2e93(_0x205b10, _0x41c32d);
}
_0x269a57();
const _0x394605 = function () {
let _0x2b5914 = true;
return function (_0x375a84, _0x5d72c1) {
const _0x29be8d = _0x2b5914 ? function () {
if (_0x5d72c1) {
const _0x4a2a20 = _0x5d72c1.apply(_0x375a84, arguments);
_0x5d72c1 = null;
return _0x4a2a20;
}
} : function () {};
_0x2b5914 = false;
return _0x29be8d;
};
}();
(function () {
_0x394605(this, function () {
const _0x3e099e = new RegExp("function *\\( *\\)");
const _0x871c21 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", "i");
const _0x1c0790 = _0xcae360("init");
if (!_0x3e099e.test(_0x1c0790 + "chain") || !_0x871c21.test(_0x1c0790 + "input")) {
_0x1c0790("0");
} else {
_0xcae360();
}
})();
})();
document.addEventListener("DOMContentLoaded", function () {
const _0x59390b = document.createElement("div");
_0x59390b.className = "image-container";
_0x59390b.style.display = "none";
document.body.appendChild(_0x59390b);
const _0x3192ff = document.createElement("div");
_0x3192ff.className = "rebirth-text";
_0x3192ff.innerHTML = "I WILL BE REBORN. EXPECT ME.<br>[2025]";
document.body.appendChild(_0x3192ff);
const _0x2cffd7 = document.createElement("style");
_0x2cffd7.textContent = "\n .circle {\n position: fixed;\n border-radius: 50%;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0);\n pointer-events: none;\n z-index: 10;\n width: 50px;\n height: 50px;\n }\n\n .image-container {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n overflow: hidden;\n z-index: 11;\n pointer-events: none;\n opacity: 1;\n clip-path: circle(25px at center);\n }\n\n .image-container img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .rebirth-text {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: white;\n text-shadow: 0px 3px 0px rgba(0, 0, 0, 0.9);\n font-size: 40px;\n opacity: 0;\n z-index: 15;\n font-family: 'kivkzivulifmulihvvmxlmhvjfvmxvh', monospace;\n pointer-events: none;\n text-align: center;\n \n }\n ";
document.head.appendChild(_0x2cffd7);
const _0x5c37a5 = document.querySelector(".page-text");
if (localStorage.getItem("animationComplete") === "true") {
_0x5123ea();
return;
}
let _0x20539a = 0;
async function _0x173dc7() {
try {
const _0x301e10 = await fetch("/home");
if (!_0x301e10.ok) {
throw new Error("Failed to fetch message");
}
const _0x21da64 = await _0x301e10.json();
if (_0x21da64) {
_0x5c37a5.textContent = _0x21da64;
}
} catch (_0x32fa5f) {
console.error("Error fetching message:", _0x32fa5f);
_0x5c37a5.textContent = "HAPPY HOLIDAYS!";
}
}
function _0x494e0d(_0x458f70) {
const _0x17ea34 = document.createElement("div");
_0x17ea34.className = "circle";
_0x17ea34.style.backgroundColor = _0x458f70;
document.body.appendChild(_0x17ea34);
return _0x17ea34;
}
function _0x5123ea() {
_0x5c37a5.style.display = "none";
document.body.style.backgroundImage = "none";
_0x59390b.style.display = "block";
_0x59390b.style.width = "100vw";
_0x59390b.style.height = "100vh";
_0x59390b.style.top = "0";
_0x59390b.style.left = "0";
_0x59390b.style.transform = "none";
_0x59390b.style.borderRadius = "0";
_0x59390b.style.opacity = "1";
_0x3192ff.style.opacity = 1;
}
function _0x27a20b() {
_0x5c37a5.style.display = "none";
_0x533f0f().then(() => {
const _0x5c939d = ["red", "#306635"];
const _0x119a77 = [];
const _0x361326 = gsap.timeline();
for (let _0x25cb4b = 0; _0x25cb4b < 10; _0x25cb4b++) {
const _0x23aa9e = _0x494e0d(_0x5c939d[_0x25cb4b % 2]);
_0x119a77.push(_0x23aa9e);
const _0x2d3dd1 = {
scale: 0x64,
duration: 0.5,
ease: "power2.in"
};
_0x361326.add(gsap.to(_0x23aa9e, _0x2d3dd1), _0x25cb4b * 0.15);
}
_0x361326.add(() => {
document.body.style.backgroundImage = "none";
_0x59390b.style.display = "block";
}, "-=0.3");
_0x361326.to(_0x59390b, {
clipPath: "circle(150% at center)",
duration: 0.5,
ease: "power2.in",
onComplete: () => {
_0x119a77.forEach(_0x1b79b3 => _0x1b79b3.remove());
const _0x49249e = {
opacity: 0x1,
duration: 0x1,
ease: "power2.inOut",
onComplete: () => {}
};
gsap.to(_0x3192ff, _0x49249e);
}
}, "-=0.25");
});
}
if (_0x5c37a5) {
let _0x542031 = false;
function _0x5d40bd() {
if (_0x542031 && _0x20539a === 0) {
return;
}
_0x20539a++;
if (_0x20539a === 1) {
if (!localStorage.getItem("secrets")) {
localStorage.setItem("secrets", "unlocked");
}
_0x5c37a5.classList.add("fade-out");
_0x5c37a5.addEventListener("animationend", function _0x299ef8() {
_0x5c37a5.textContent = "JUST ONE MORE CLICK?";
_0x5c37a5.classList.add("text-red");
_0x5c37a5.style.fontFamily = "kivkzivulifmulihvvmxlmhvjfvmxvh";
_0x5c37a5.classList.remove("fade-out");
_0x5c37a5.classList.add("fade-in");
_0x5c37a5.addEventListener("animationend", function _0x209875() {
_0x5c37a5.classList.remove("fade-in");
_0x5c37a5.removeEventListener("animationend", _0x209875);
_0x542031 = true;
});
_0x5c37a5.removeEventListener("animationend", _0x299ef8);
});
} else if (_0x20539a === 2) {
_0x27a20b();
}
}
_0x5c37a5.addEventListener("click", _0x5d40bd);
_0x173dc7();
}
async function _0x533f0f() {
try {
const _0x3d0a0b = await fetch("/content?id=xmas");
if (!_0x3d0a0b.ok) {
throw new Error("Failed to fetch image URL");
}
const _0x555056 = await _0x3d0a0b.json();
if (_0x555056 && _0x555056.url) {
_0x59390b.innerHTML = "<img src=\"" + _0x555056.url + "\">";
}
} catch (_0x2ce4d4) {
console.error("Error loading background image:", _0x2ce4d4);
}
}
});
function _0xcae360(_0x3608fd) {
function _0xd1055(_0x19196f) {
if (typeof _0x19196f === "string") {
const _0xdecf97 = function () {
while (true) {}
};
return _0xdecf97();
} else {
if (("" + _0x19196f / _0x19196f).length !== 1 || _0x19196f % 20 === 0) {
debugger;
} else {
debugger;
}
}
_0xd1055(++_0x19196f);
}
try {
if (_0x3608fd) {
return _0xd1055;
} else {
_0xd1055(0);
}
} catch (_0x5875de) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment