Skip to content

Commit

Permalink
oh wel
Browse files Browse the repository at this point in the history
  • Loading branch information
meqativ committed Oct 18, 2024
1 parent 14da3dd commit 9ba0444
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,6 @@ try { updateAge(); } catch (e) {
console.error(e);
alert(`Age update error:\n${e?.stack??e}`);
}
const age = document.querySelector("span#age"),
onlyfans_btn = document.querySelector("button#onlyfans"),
btns = document.querySelector(".buttons");

let last, font_size = 2;
onlyfans_btn.style.display = "";// show if js enabled
onlyfans_btn.addEventListener("click", () => {
if (last) clearTimeout(last);
if (age) updateAge(age);
if (!age || age.innerText > 18) return window.open("https://media.tenor.com/iHAv4WoNo2kAAAAC/gotcha-bitch.gif");
scrollIntoView(age);
if (font_size < 8) return (age.style = `font-size: ${(font_size *= 4)}rem;`);
age.style.animation = "look 2s";
age.addEventListener(
"animationend",
() => {
age.style.animation = ""
},
{ once: true }
);

// revert to normal font size
last = setTimeout(() => {
font_size = 1;
age.style = "";
last = undefined;
}, 10 * 1000);
});

const tg_btn = document.querySelector("button#tg"),
tg_btns = document.querySelector("div.telegram-btns"),
tg_btn_arrow = document.querySelector("button#tg div:last-child"),
Expand Down Expand Up @@ -148,3 +119,35 @@ with (lib_text) {
addEventListener("click", showSourceCodeButton);
document.addEventListener("keyup", lib_text_enter_handle);
}

const age = document.querySelector("span#age"),
onlyfans_btn = document.querySelector("button#onlyfans"),
btns = document.querySelector(".buttons");

if (age < 21) { // nvm
let last, font_size = 2;
onlyfans_btn.style.display = "";// show if js enabled
onlyfans_btn.addEventListener("click", () => {
if (last) clearTimeout(last);
if (age) updateAge(age);
if (!age || age.innerText > 18) return window.open("https://media.tenor.com/iHAv4WoNo2kAAAAC/gotcha-bitch.gif");
scrollIntoView(age);
if (font_size < 8) return (age.style = `font-size: ${(font_size *= 4)}rem;`);
age.style.animation = "look 2s";
age.addEventListener(
"animationend",
() => {
age.style.animation = ""
},
{ once: true }
);

// revert to normal font size
last = setTimeout(() => {
font_size = 1;
age.style = "";
last = undefined;
}, 10 * 1000);
});

}

0 comments on commit 9ba0444

Please sign in to comment.