this repo has no description
at main 928 B view raw
1let howmanytimesyoudidthethingverycool = 0; 2 3(() => { 4 let localStorage = window.localStorage; 5 let pfpElem = document.getElementsByClassName("pfp")[0]; 6 7 if (localStorage.getItem("youdidthethingitwasverycool")) { 8 pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`); 9 return; 10 } else { 11 pfpElem.setAttribute("src", "pretty_nelly.png"); 12 } 13 14 pfpElem.addEventListener("click", (e) => { 15 howmanytimesyoudidthethingverycool++; 16 if (howmanytimesyoudidthethingverycool >= 3) { 17 localStorage.setItem("youdidthethingitwasverycool", true); 18 if (pfpElem.getAttribute("src") === "pretty_nelly.png") { 19 pfpElem.setAttribute("src", `https://placewaifu.com/image/200?dummyrandtofuckthebrowsercache=${Math.floor(Math.random() * 100)}`); 20 } 21 } 22 }); 23})()