new infinite powers
// ==UserScript==
// @name CellCraft Inf pows
// @namespace inf powers
// @version 1.1
// @license MIT
// @description new infinite powers
// @match *://*.cellcraft.io/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function startPrank(){
let overlay = document.createElement("div");
overlay.style.position="fixed";
overlay.style.top="0";
overlay.style.left="0";
overlay.style.width="100%";
overlay.style.height="100%";
overlay.style.background="black";
overlay.style.color="#00bfff";
overlay.style.fontFamily="monospace";
overlay.style.display="flex";
overlay.style.flexDirection="column";
overlay.style.alignItems="center";
overlay.style.justifyContent="center";
overlay.style.zIndex="999999";
overlay.innerHTML = `
<h1>⚠ SYSTEM DETECTED ⚠</h1>
<p>Bro… you trying to break the game 😹</p>
<p>Stop using scripts that ruin the game.</p>
<p>Change your life bro.</p>
<br>
<div style="width:60%;background:#222;height:30px;border:1px solid #00bfff">
<div id="hackBar" style="width:0%;height:100%;background:#00bfff"></div>
</div>
<p id="hackText">Scanning player...</p>
`;
document.body.appendChild(overlay);
let audio = new Audio("https://www.myinstants.com/media/sounds/laugh-cat.mp3");
audio.volume = 1;
// autoplay fix
audio.play().catch(()=>{
document.addEventListener("click", () => {
audio.play();
},{once:true});
});
let bar = document.getElementById("hackBar");
let text = document.getElementById("hackText");
let progress = 0;
let interval = setInterval(()=>{
progress += 5;
bar.style.width = progress + "%";
if(progress < 30){
text.innerText="Scanning scripts...";
}
else if(progress < 60){
text.innerText="Detecting cheating behavior...";
}
else if(progress < 90){
text.innerText="Sending warning to player...";
}
else{
text.innerText="HAHAHAHA GOT YOU 😹";
}
if(progress >= 100){
clearInterval(interval);
setTimeout(()=>{
overlay.remove();
},3000);
}
},200);
}
setTimeout(startPrank,4000);
})();