Message
Message
//__END__SETTINGS______________________________________________
function showToast(text) {
const el = document.createElement('div');
el.textContent = text;
Object.assign(el.style, {
position: 'fixed',
left: '50%',
top: '20px',
transform: 'translateX(-50%)',
padding: '10px 14px',
background: 'rgba(0,0,0,0.7)',
color: '#fff',
fontFamily: 'system-ui, sans-serif',
fontSize: '14px',
borderRadius: '10px',
zIndex: 999999,
pointerEvents: 'none'
});
document.documentElement.appendChild(el);
setTimeout(() => el.remove(), 2000);
}
function hookShaderSource(proto) {
if (!proto || !proto.shaderSource) return;
const origShaderSource = proto.shaderSource;
proto.shaderSource = function(shader, source) {
try {
if (toonShaderEnabled && looksLikeFragmentShader(source)) {
const patched = injectToonAnimated(source);
return origShaderSource.call(this, shader, patched || source);
}
} catch (err) { console.warn('[Ugvs Toon] Patch error', err); }
return origShaderSource.call(this, shader, source);
};
}
function looksLikeFragmentShader(src) {
return /gl_FragColor/.test(src) || (/sampler2D|texture2D|texture\(/.test(src)
&& /precision\s+\w+\s+float\s*;/.test(src));
}
function injectToonAnimated(src) {
const STYLIZE_FN = `
uniform float u_time;
vec4 _stylize(vec4 c){
float levels = 5.0; // viac úrovní
float pulse = 0.2 * sin(u_time * 3.0);
// farebný quantize
vec3 q = floor((c.rgb + pulse) * levels) / levels;
// farebné tónovanie
vec3 colorShift = vec3(
0.8 + 0.2 * sin(u_time + q.r * 3.0),
0.8 + 0.2 * sin(u_time + q.g * 2.0),
0.8 + 0.2 * sin(u_time + q.b * 4.0)
);
vec3 result = q * colorShift;
// jemný boost kontrastu
vec3 meanGrey = vec3(dot(result, vec3(0.299, 0.487, 0.214)));
vec3 sat = mix(meanGrey, result, 1.3);
vec3 contrast = (sat - 0.5) * 1.1 + 0.5;
return vec4(clamp(contrast, 0.0, 1.0), c.a);
}
`;
let insertPos = 0;
const precisions = [...src.matchAll(/precision\s+\w+\s+float\s*;/g)];
if (precisions.length) insertPos = precisions[precisions.length-1].index +
precisions[precisions.length-1][0].length;
let withFn = src.slice(0, insertPos) + '\n' + STYLIZE_FN + '\n' +
src.slice(insertPos);
const hasFragColor = /gl_FragColor/.test(withFn);
let outVar = null;
const outDecl = withFn.match(/^\s*out\s+vec4\s+(\w+)\s*;/m);
if (outDecl) outVar = outDecl[1];
const mainIdx = withFn.indexOf('void main');
if (mainIdx < 0) return withFn;
const braceStart = withFn.indexOf('{', mainIdx);
if (braceStart < 0) return withFn;
let i = braceStart + 1, depth = 1;
while(i < withFn.length && depth>0){ const ch=withFn[i]; if(ch=='{')depth++;
else if(ch=='}')depth--; i++; }
if(depth!==0) return withFn;
const mainEnd = i-1;
const injectLine = hasFragColor ? `\n gl_FragColor = _stylize(gl_FragColor);\
n` : (outVar ? `\n ${outVar} = _stylize(${outVar});\n` : null);
if(!injectLine) return withFn;
return withFn.slice(0, mainEnd) + injectLine + withFn.slice(mainEnd);
}
// Initialize Toon Shader
window.addEventListener('load', () => {
setTimeout(() => {
try { hookShaderSource(WebGLRenderingContext.prototype); } catch {}
try { hookShaderSource(WebGL2RenderingContext.prototype); } catch {}
console.log('[Ugvs Toon] Hook applied');
}, 2000);
});
function patchTimeUniform(gl){
const program = gl.getParameter(gl.CURRENT_PROGRAM);
if(!program) return;
const loc = gl.getUniformLocation(program,'u_time');
if(loc) gl.uniform1f(loc, performance.now()/1000);
}
function toggleToonShader() {
toonShaderEnabled = !toonShaderEnabled;
localStorage.setItem(TOON_SHADER_LS_KEY, toonShaderEnabled ? '1' : '0');
const msg = toonShaderEnabled ? 'Toon shader ENABLED' : 'Toon shader DISABLED';
console.log('[Ugvs Toon]', msg);
showToast(msg);
updateToonShaderButton();
}
function createFakeDupeGUI() {
if (fakeDupeGUI) return fakeDupeGUI;
document.body.appendChild(gui);
fakeDupeGUI = gui;
return gui;
}
function fakeDupeLoop() {
updateFakeAmount('.InvenItem.Selected', fakeDupeAmount);
updateFakeAmount('.DraggedInvenItem', fakeDupeAmount);
requestAnimationFrame(fakeDupeLoop);
}
function toggleFakeDupe() {
fakeDupeEnabled = !fakeDupeEnabled;
if (fakeDupeEnabled) {
createFakeDupeGUI();
fakeDupeLoop();
} else if (fakeDupeGUI) {
fakeDupeGUI.style.display = 'none';
}
updateFakeDupeButton();
}
const possibleNames = [
//"LegLeftMesh",
//"LegRightMesh",
//"TorsoNode",
//"ArmLeftMesh",
//"ArmRightMesh",
"BodyMesh",
'Body|Armour',
//"HeadMesh"
]; // Potential detection: If the player has leg armour there is no way leftLegMesh
could have been hit.
let killAuraEnabled = false
let killAuraIntervalId = null
let lastClosestId = null
let newBox = null;
let newBoxId = null;
let __nullKey = null; //Entity enabled key
let __stringKey = null; //Entity ID key "Then why didn't you just label them that?"
let animationFrameId = null;
let hitBoxEnabled = false;
const hitboxes = {};
let everEnabled = {}
///////////////////////////////////////////////////////////////////////////////////
/////Main Functions
var r = { //WANG
keys(e) {
var t = [],
o = 0;
for (var s in e) e != null && (t[o] = s, o++);
return t
},
values(e) {
for (var t = this.keys(e), o = [], s = 0, i = 0; s < t.length;) {
var l = t[s],
d = e[l];
o[i] = d, i++, s++
}
return o
},
assign(e, ...t) {
let o = Object(e);
for (let s = 0; s < t.length; s++) {
let i = t[s];
if (i != null)
for (let l in i) o[l] = i[l]
}
return o
}
};
function onKeyUp(e) {
if (e.code === 'Space') {
spaceHeld = false;
spaceVid.style.opacity = '0';
fadeVolume(spaceVid.volume, 0.1, 2.5); //
setTimeout(() => {
if (!spaceHeld) spaceVid.pause();
}, 500);
}
}
function toggleBhopKnife() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
if (!bhopKnifeEnabled) {
everEnabled.bhopKnifeEnabled = true;
bhopKnifeEnabled = true;
spaceVid = document.createElement('video');
spaceVid.src = 'https://files.catbox.moe/6tm4e7.webm';
spaceVid.preload = 'auto';
spaceVid.loop = true;
spaceVid.muted = false;
spaceVid.volume = 0;
spaceVid.playbackRate = 1;
spaceVid.playsInline = true;
Object.assign(spaceVid.style, {
position: 'fixed',
top: '50%',
left: '50%',
width: '100vw',
height: '100vh',
objectFit: 'cover',
transform: 'translate(-50%, -50%) scaleX(1.4)', // Stretch only width
zIndex: 21,
pointerEvents: 'none',
opacity: '0',
transition: 'opacity 2.5s ease',
});
document.body.appendChild(spaceVid);
window.addEventListener('keydown', onKeyDown);
window.addEventListener('keyup', onKeyUp);
} else {
// Disable
bhopKnifeEnabled = false;
window.removeEventListener('keydown', onKeyDown);
window.removeEventListener('keyup', onKeyUp);
if (spaceVid) {
spaceVid.pause();
if (spaceVid.parentNode) spaceVid.parentNode.removeChild(spaceVid);
spaceVid = null;
}
spaceHeld = false;
if (fadeVolumeInterval) clearInterval(fadeVolumeInterval);
}
updateKnifeButton();
}
function toggleSlowHit() {
slowHitEnabled = !slowHitEnabled; // Toggle the boolean
playerEntity.heldItemState.swingDuration = slowHitEnabled ? 1500 : 200;
updateSlowHit(); // Call your update function
}
function matchesAllPatterns(fn) {
const patterns = ["this.names.position", ".base[0]"].map(p => p.replace(/\s+/g,
''));
try {
const src = fn.toString().replace(/\s+/g, '');
return patterns.every(p => src.includes(p));
} catch {
return false;
}
}
function findClassConstructor(obj) {
let current = obj;
while (current) {
for (const key of Reflect.ownKeys(current)) {
let val;
try {
const desc = Object.getOwnPropertyDescriptor(current, key);
val = desc?.value ?? current[key];
} catch {
continue;
}
if (typeof val === "function" && matchesAllPatterns(val)) {
return val;
}
}
current = Object.getPrototypeOf(current);
}
return null;
}
function findGhMethod(clsConstructor) {
const protoLocal = clsConstructor?.prototype;
if (!protoLocal) return null;
for (const key of Reflect.ownKeys(protoLocal)) {
if (key === "constructor") continue;
const fn = protoLocal[key];
if (typeof fn === "function" && matchesAllPatterns(fn)) {
return {
fn,
key
};
}
}
return null;
}
function toggleScaffold() {
scaffoldEnabled = !scaffoldEnabled;
everEnabled.scaffoldEnabled = true;
if (scaffoldEnabled) {
scaffoldIntervalId = setInterval(() => {
const pos = shideFuxny.entities.getState(1, 'position').position;
if (!pos || playerEntity.heldItemState.heldType !== "CubeBlock")
return;
function togglePickupReach() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
if (!proto || !originalGetEntitiesInAABB) {
const cls = findClassConstructor(shideFuxny.NIGHT.entities);
if (!cls) {
console.warn("[pickupReach] Could not find class constructor");
return;
}
const ghMethod = findGhMethod(cls);
if (!ghMethod) {
console.warn("[pickupReach] Could not find getEntitiesInAABB method");
return;
}
proto = cls.prototype;
originalGetEntitiesInAABB = ghMethod.fn;
ghMethodKey = ghMethod.key;
}
if (pickupReachEnabled) {
// Disable patch
proto[ghMethodKey] = originalGetEntitiesInAABB;
pickupReachEnabled = false;
console.log("[pickupReach] Patch disabled");
} else {
everEnabled.pickupReachEnabled = true;
// Enable patch
proto[ghMethodKey] = function(box, name) {
const center = [
(box.base[0] + box.max[0]) / 2,
(box.base[1] + box.max[1]) / 2,
(box.base[2] + box.max[2]) / 2,
];
const halfSize = [
(box.max[0] - box.base[0]) / 2,
(box.max[1] - box.base[1]) / 2,
(box.max[2] - box.base[2]) / 2,
];
const enlarged = {
base: center.map((c, i) => c - halfSize[i] * RANGE_MULTIPLIER),
max: center.map((c, i) => c + halfSize[i] * RANGE_MULTIPLIER)
};
return originalGetEntitiesInAABB.call(this, enlarged, name);
};
pickupReachEnabled = true;
console.log("[pickupReach] Patch enabled");
}
updatePickupReachButton()
}
function passiveFeatures() {
if (passiveFeaturesEnabled) {
everEnabled.passiveFeaturesEnabled = true;
if (changeHealthBar) {
(function() { // FROM ENTITY
'use strict';
const healthBar =
document.getElementsByClassName("BottomScreenStatBar")[0];
if (healthBar) {
// Clear all conflicting styles
healthBar.style.background = defaultGradient;
healthBar.style.backgroundColor = 'transparent';
healthBar.style.boxShadow = 'none';
healthBar.style.border = 'none';
healthBar.style.backgroundRepeat = 'no-repeat';
healthBar.style.backgroundSize = '100% 100%';
healthBar.style.outline = 'none';
// Also fix child elements (some bars use internal fill divs)
for (const child of healthBar.children) {
child.style.background = 'transparent';
child.style.backgroundColor = 'transparent';
child.style.boxShadow = 'none';
child.style.border = 'none';
}
// Force override with CSS injection if still persists
const style = document.createElement('style');
style.textContent = `
.BottomScreenStatBar {
background: ${defaultGradient} !important;
background-size: 100% 100% !important;
background-repeat: no-repeat !important;
box-shadow: none !important;
border: none !important;
}
.BottomScreenStatBar * {
background: transparent !important;
background-color: transparent !important;
box-shadow: none !important;
border: none !important;
}
`;
document.head.appendChild(style);
console.log("✅ Applied clean default gradient to health bar");
} else {
console.warn("❌ Could not find health bar element");
}
})();
}
////////Anti-cobweb
Object.defineProperty(shideFuxny.entities[shideFuxny.impKey].moveState.list[0].spee
dMultiplier.multipliers, "inCobweb", {
configurable: true,
enumerable: true,
get() {
return 1; // always return 1
},
set(value) {
// ignore all attempts to change it
}
});
if (spoofRanksEnabled) {
shideFuxny.entityList[1][1].ranks[0] = "developer";
shideFuxny.entityList[1][1].ranks[1] = "youtuber";
shideFuxny.entityList[1][1].ranks[2] = "super";
} else {
}
}
}
function emitSafePrimaryFire() {
const fakeEvent = {
timeStamp: performance.now(),
altKey: false,
ctrlKey: false,
shiftKey: false,
metaKey: false,
button: 0, // left click
buttons: 1, // left button pressed
clientX: innerWidth / 2 + Math.floor(Math.random() * 4 - 2),
clientY: innerHeight / 2 + Math.floor(Math.random() * 4 - 2),
screenX: screen.width / 2,
screenY: screen.height / 2
};
shideFuxny.NIGHT.inputs.down.emit("primary-fire", fakeEvent);
}
function inMenu() {
const requests = shideFuxny.Props.pointerLockWrapper.pointerUnlockRequests;
return requests.includes("SettingsMenuComponent") ||
requests.includes("InGameMenu");
}
function movePotionToSlot() {
if (!playerInventoryParent || !playerInventoryParent.playerInventory?.items) {
console.warn("❌ playerInventoryParent is not set. Run
findAndSavePlayerInventoryParent() first.");
return false;
}
const items = playerInventoryParent.playerInventory.items;
let potionSlot = null;
for (let i = desiredPotionSlot; i < items.length; i++) {
const item = items[i];
if (!item || typeof item.name !== 'string') continue;
const name = item.name.toLowerCase();
if (
name.includes("potion") &&
name.includes("splash") &&
(name.includes("healing") || name.includes("shield"))
) {
potionSlot = i;
break;
}
}
if (potionSlot === null) {
return false;
}
console.log(`🔁 Swapping potion from slot ${potionSlot} with slot $
{desiredPotionSlot}`);
playerInventoryParent.swapPosClient(potionSlot, desiredPotionSlot, null);
return true;
}
function makeHitboxes() {
if (!injectedBool) {
console.log("NOT INJECTED NO TARGET");
return;
}
const rendering = r.values(shideFuxny.rendering)[18];
const objectData = rendering?.objectData;
if (!objectData || !eIdKey) return;
const activeEIds = new Set();
// First, build a set of currently valid entity IDs
for (const key in objectData) {
if (key === "1") continue;
const obj = objectData[key];
const eId = obj[eIdKey];
if (
eId == null ||
eId === myId ||
obj.pickable === false ||
obj.type !== "Player" ||
!shideFuxny.entities.getState(eId, "genericLifeformState")
) continue;
activeEIds.add(eId);
// If hitbox already exists, skip
if (hitboxes[eId]) continue;
// Create the hitbox
let newBox_00 = shideFuxny.Lion.Mesh.CreateBox("mesh", 1, false, 1,
shideFuxny.Lion.scene);
newBox_00.renderingGroupId = 2;
newBox_00.material = new shideFuxny.Lion.StandardMaterial("mat",
shideFuxny.Lion.scene);
newBox_00.material.diffuseColor = new shideFuxny.Lion.Color3(1, 1, 1);
newBox_00.material.emissiveColor = new shideFuxny.Lion.Color3(1, 1, 1);
newBox_00.name = '_';
newBox_00.id = '__' + eId;
let defaultPosition = new newBox_00.position.constructor(0, 0.32, 0);
newBox_00.position = defaultPosition.clone();
newBox_00._scaling._y = 2.2;
newBox_00.material.alpha = 0.5;
newBox_00.isVisible = hitBoxEnabled;
rendering.attachTransformNode(newBox_00, key, 13);
r.values(shideFuxny.rendering)[27].call(shideFuxny.rendering, newBox_00);
Object.defineProperty(newBox_00._nodeDataStorage, '_isEnabled', {
get: () => true,
set: (v) => {},
configurable: false
});
hitboxes[eId] = newBox_00;
}
// Cleanup hitboxes of players no longer present
for (const eId in hitboxes) {
if (!activeEIds.has(eId)) {
hitboxes[eId]?.dispose();
delete hitboxes[eId];
}
}
// Visibility toggle based on node[0].enabled and hitBoxEnabled
for (const key in objectData) {
const obj = objectData[key];
const eId = obj?.[eIdKey];
if (!eId || !hitboxes[eId]) continue;
const baseNode = obj.nodes?.[0];
if (!baseNode) continue;
hitboxes[eId].isVisible = baseNode.enabled && hitBoxEnabled;
}
}
(() => {
// Remove if already present
const old = document.getElementById("vertical-health-bar");
if (old) old.remove();
// Create bar container
const container = document.createElement("div");
container.id = "vertical-health-bar";
Object.assign(container.style, {
position: "fixed",
left: "calc(50% - 200px)", // 100px left of center
top: "50%",
transform: "translateY(-50%)",
width: "4px",
height: "200px",
background: "#000",
border: "2px solid black",
zIndex: 120,
pointerEvents: "none",
display: "flex",
alignItems: "flex-end",
overflow: "hidden"
});
// Create fill element
const fill = document.createElement("div");
Object.assign(fill.style, {
width: "100%",
height: "100%",
background: "limegreen",
transform: "scaleY(1)",
transformOrigin: "bottom",
transition: "transform 0.2s ease, background 0.2s ease", // <-- add comma
here
});
container.appendChild(fill);
document.body.appendChild(container);
// Function to compute smooth gradient color from green → red
function getHealthColor(health) {
const ratio = health / 100;
if (ratio > 0.5) {
// Bright green → orange
const t = (ratio - 0.5) * 2;
const r = Math.round(255 * (1 - t));
const g = 255;
return `rgb(${r}, ${g}, 0)`; // green to yellow to orange
} else {
// Orange → red
const t = ratio * 2;
const r = 255;
const g = Math.round(255 * t);
return `rgb(${r}, ${g}, 0)`; // orange to red
}
}
function toggleTriggerBot() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.triggerBotEnabled = true;
if (triggerBotEnabled) {
clearTimeout(toggleTriggerBotInterval);
triggerBotEnabled = false;
console.log("⛔ Auto-attack stopped");
} else {
triggerBotEnabled = true;
function autoAttackLoop() {
if (!triggerBotEnabled) return;
checkAndClick();
const nextDelay = ATTACK_INTERVAL_MS + (Math.random() * 40 - 20); //
±20ms
toggleTriggerBotInterval = setTimeout(autoAttackLoop, nextDelay);
}
autoAttackLoop();
console.log("▶️ Auto-attack started");
}
updateTriggerBotButton();
}
function toggleLockPlayerWaterState() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.waterJumpingEnabled = true;
const movementList = shideFuxny.entities[shideFuxny.impKey]?.movement?.list;
if (!Array.isArray(movementList) || movementList.length === 0) return;
const c = movementList[0];
if (waterJumpingEnabled) {
// Restore defaults (optional: redefine properties as writable again)
waterJumpingEnabled = false;
console.log("🔓 Player water state unlocked");
updateWaterJumpButton();
return;
}
try {
Object.defineProperty(c, "inAirFromWater", {
get: () => false,
set: () => {},
configurable: true
});
Object.defineProperty(c, "_jumpCount", {
get: () => 0,
set: () => {},
configurable: true
});
Object.defineProperty(c, "_ticksOutOfWater", {
get: () => 346,
set: () => {},
configurable: true
});
// Add this too if you want to lock ice status:
Object.defineProperty(c, "isOnIce", {
get: () => true,
set: () => {},
configurable: true
});
waterJumpingEnabled = true;
console.log("🔒 Player water state locked");
updateWaterJumpButton();
} catch (e) {
console.error("Error locking player water state:", e);
}
}
function toggleWallJumpScript() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.wallJumpRunning = true;
const client = shideFuxny?.clientOptions;
const body = shideFuxny?.physics?.bodies?.[0];
if (!client || !body) return;
if (wallJumpRunning) {
// Unlock airJumpCount (optional reset)
Object.defineProperty(client, "airJumpCount", {
value: 0,
writable: true,
configurable: true
});
wallJumpRunning = false;
console.log("🧱 Wall jump script disabled");
updateWallJumpButton();
return;
}
// Lock airJumpCount based on body.resting direction
Object.defineProperty(client, "airJumpCount", {
get() {
if (!body.resting) return 0;
const [rx, , rz] = body.resting;
return (rx === 1 || rx === -1 || rz === 1 || rz === -1) ? 999 : 0;
},
set(_) {}, // Prevent assignment
configurable: true
});
wallJumpRunning = true;
console.log("🧱 Wall jump script enabled");
updateWallJumpButton();
}
function wangPlace(position) {
let heldBlock = r.values(shideFuxny.NIGHT.entities[shideFuxny.impKey])
[22].list[0]._blockItem;
let worldInstanceKey = Object.keys(heldBlock)[0];
let worldInstance = Object.values(heldBlock)[0];
let targetedBlockKey = Object.keys(worldInstance)[25];
let targetedBlock = worldInstance[targetedBlockKey];
function spoofTargetedBlock(position) {
return new Proxy({}, {
get(target, prop, receiver) {
if (prop === worldInstanceKey) {
return new Proxy(worldInstance, {
get(inner, key) {
if (key === targetedBlockKey) {
let spoofedTargetedBlock =
structuredClone(targetedBlock) || {};
spoofedTargetedBlock.position = position;
return spoofedTargetedBlock;
}
return worldInstance[key];
},
});
}
if (prop == "checkTargetedBlockCanBePlacedOver") {
return () => true;
}
if (typeof heldBlock[prop] == "function") {
return heldBlock[prop].bind(heldBlock);
} else {
return heldBlock[prop];
}
},
});
}
heldBlock.placeBlock.call(spoofTargetedBlock(position));
}
function placeToPlayer(position) {
// Convert to block coordinates by flooring each component
const blockX = Math.floor(position[0]);
const blockY = Math.floor(position[1]);
const blockZ = Math.floor(position[2]);
if (playerEntity.checkTargetedBlockCanBePlacedOver([blockX, blockY - 3,
blockZ]) || r.values(shideFuxny.world)[47].call(shideFuxny.world, blockX, blockY -
3, blockZ) === 0) {
wangPlace([blockX, blockY - 3, blockZ])
}
if (playerEntity.checkTargetedBlockCanBePlacedOver([blockX, blockY - 2,
blockZ]) || r.values(shideFuxny.world)[47].call(shideFuxny.world, blockX, blockY -
2, blockZ) === 0) {
wangPlace([blockX, blockY - 2, blockZ])
}
if (playerEntity.checkTargetedBlockCanBePlacedOver([blockX, blockY - 1,
blockZ]) || r.values(shideFuxny.world)[47].call(shideFuxny.world, blockX, blockY -
1, blockZ) === 0) {
wangPlace([blockX, blockY - 1, blockZ])
}
if (playerEntity.checkTargetedBlockCanBePlacedOver([blockX, blockY, blockZ]) ||
r.values(shideFuxny.world)[47].call(shideFuxny.world, blockX, blockY, blockZ) ===
0) {
wangPlace([blockX, blockY, blockZ])
}
}
function placeSpike(position) {
// Convert to block coordinates by flooring each component
const blockX = Math.floor(position[0]);
const blockY = Math.floor(position[1]);
const blockZ = Math.floor(position[2]);
if (playerEntity.checkTargetedBlockCanBePlacedOver([blockX, blockY + 1,
blockZ]) || r.values(shideFuxny.world)[47].call(shideFuxny.world, blockX, blockY +
1, blockZ) === 0) {
wangPlace([blockX, blockY + 1, blockZ])
}
}
function moveItem(itemName, desiredSlot) {
if (!playerInventoryParent || !playerInventoryParent.playerInventory?.items) {
console.warn("❌ playerInventoryParent is not set. Run
findAndSavePlayerInventoryParent() first.");
return false;
}
const items = playerInventoryParent.playerInventory.items;
let oldSlot = null;
for (let i = 0; i < items.length; i++) {
const item = items[i];
if (!item || typeof item.name !== 'string') continue;
const name = item.name.toLowerCase();
if (name.includes(itemName)) {
oldSlot = i;
break;
}
}
if (oldSlot === null) {
console.warn(`❌ No ${itemName} found in slot 10 or higher.`);
return false;
}
console.log(`🔁 Swapping ${itemName} from slot ${oldSlot} with slot $
{desiredSlot}`);
playerInventoryParent.swapPosClient(oldSlot, desiredSlot, null);
return true;
}
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function autoSW() {
if (lastClosestId && targetEntityDistance <= 36) { // place web then spikes
if (moveItem("net", webSlot) || moveItem("web", webSlot)) {
let enemyPos = shideFuxny.entities.getState(lastClosestId,
'position').position;
shideFuxny.NIGHT.inputs.down['_events'][`HotBarSlot${webSlot + 1}`]();
placeToPlayer(enemyPos);
await sleep(50); // delay before switching to spikes
if (moveItem("spikes", spikeSlot)) {
shideFuxny.NIGHT.inputs.down['_events'][`HotBarSlot${spikeSlot +
1}`]();
placeSpike(enemyPos);
}
} else { // just place spikes
if (moveItem("spikes", spikeSlot)) {
shideFuxny.NIGHT.inputs.down['_events'][`HotBarSlot${spikeSlot +
1}`]();
await sleep(50);
let enemyPos = shideFuxny.entities.getState(lastClosestId,
'position').position;
placeToPlayer(enemyPos);
} else {
console.log("no spikes or webs!");
}
}
shideFuxny.NIGHT.inputs.down['_events'].HotBarSlot1();
} else {
console.log("No target or too far");
}
if (!everEnabled.autoSWUsed) {verEnabled.autoSWUsed = true};
}
function startTargetFinder() {
let armourNodeNum = r.values(shideFuxny.rendering)[18].getNamedNode(1, "Body|
Armour")
let closestObj = null;
targetFinderId = setInterval(() => {
if (!injectedBool) {
console.log("NOT INJECTED NO TARGET")
}
if (!shideFuxny.entities.getState(1, "genericLifeformState").isAlive)
return;
if (
eId == null ||
obj.type !== "Player" ||
obj.pickable === false ||
eId === myId ||
!shideFuxny.entities.getState(eId, "genericLifeformState") ||
!shideFuxny.entities.getState(eId, "genericLifeformState").isAlive
) continue;
if (closestId != null) {
newBox.metadata.eId = closestId;
//console.log(newBox.id," ",closestId)
if (closestId !== lastClosestId) {
if (hitboxes[closestId]) {
hitboxes[closestId].material.diffuseColor = new
shideFuxny.Lion.Color3(1, 0, 0);
hitboxes[closestId].material.emissiveColor = new
shideFuxny.Lion.Color3(1, 0, 0);
for (const id in hitboxes) {
if (id !== closestId && hitboxes[id]) {
hitboxes[id].material.diffuseColor = new
shideFuxny.Lion.Color3(1, 1, 1);
hitboxes[id].material.emissiveColor = new
shideFuxny.Lion.Color3(1, 1, 1);
}
}
}
lastClosestId = closestId;
}
} else {
//newBox.metadata.eId = null;
lastClosestId = null;
}
// Final visibility and distance logic
if (killAuraEnabled && closestId != null && minDist < 400) { //16 for now
newBox[__nullKey] = true;
targetEntityDistance = Math.floor(Math.sqrt(minDist));
} else {
newBox[__nullKey] = false;
targetEntityDistance = null;
}
}, 100);
}
function toggleKillAura() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.');
return;
}
everEnabled.killAuraEnabled = true;
if (killAuraEnabled) {
console.log("⛔ Kill aura disabled");
} else {
newBox[__nullKey] = false;
}
killAuraEnabled = !killAuraEnabled;
updateKillAuraButton();
}
function toggleHitBoxes() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.');
return;
}
everEnabled.hitBoxEnabled = true;
hitBoxEnabled = !hitBoxEnabled;
// Toggle visibility on all hitboxes
for (const eId in hitboxes) {
const box = hitboxes[eId];
if (box && box.isVisible !== hitBoxEnabled) {
box.isVisible = hitBoxEnabled;
}
}
updateHitboxButton();
}
function toggleSkybox() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.skyBoxEnabled = true;
(function saveSkyboxEntity() {
for (let i = 0; i < 10000; i++) {
const meshState = shideFuxny.entities.getState(i, "mesh");
if (meshState?.mesh?.id === "skyBox") {
console.log(`✔ Found skyBox entity: ${i}`);
skyboxEntity = i; // Save globally
skyboxMesh = meshState.mesh; // Optional: save mesh reference too
break;
}
}
})();
if (!skyboxMesh) {
console.warn("❌ skyboxMesh is not defined.");
return;
}
isSkyboxHidden = !isSkyboxHidden;
skyboxMesh.isVisible = isSkyboxHidden ? false : true;
console.log(`🌌 Skybox is now ${isSkyboxHidden ? "hidden" : "visible"}`);
updateSkyboxButton()
}
/*
function rainbowSky() {
rainbowSkyEnabled = !rainbowSkyEnabled
if (!rainbowSkyEnabled) {
}
}*/
function toggleWireframe() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.wireFramesBool = true;
wireFramesBool = !wireFramesBool;
const renderings = r.values(shideFuxny.rendering);
for (const rendering of renderings) {
const thinMeshes = r.values(shideFuxny.rendering)[18].thinMeshes;
if (!Array.isArray(thinMeshes)) continue;
for (const thinMesh of thinMeshes) {
const mesh = thinMesh?.mesh;
const material = mesh?.material;
const name = mesh?.name;
if (
material &&
typeof material.wireframe === "boolean" &&
!(typeof name === "string" && name.includes("Armour"))
) {
material.wireframe = wireFramesBool;
}
}
}
updateWireframeButton();
}
function clearESPBoxes() {
for (const key in chestBoxes) {
for (const {
mesh,
id
}
of chestBoxes[key]) {
mesh.dispose();
shideFuxny.entities.deleteEntity(id);
}
}
scannedChunks.clear();
chestBoxes = {};
}
}
}
function scanAllChunks() {
if (!shideFuxny?.world || !shideFuxny?.world?.[shideFuxny.impKey]?.hash)
return;
const chunkHash = shideFuxny.world[shideFuxny.impKey].hash;
// Step 1: Remove boxes for chunks no longer loaded
for (const scannedKey of scannedChunks) {
if (!(scannedKey in chestBoxes)) continue;
if (!Object.values(chunkHash).some(chunk => getChunkKey(chunk) ===
scannedKey)) {
// Delete all meshes for this chunk
for (const {
mesh,
id
}
of chestBoxes[scannedKey]) {
mesh.dispose(); // remove from scene
shideFuxny.entities.deleteEntity(id); // remove from entity system
if needed
}
delete chestBoxes[scannedKey];
scannedChunks.delete(scannedKey);
}
}
// Step 2: Scan newly loaded chunks
for (const chunkKey in chunkHash) {
const chunk = chunkHash[chunkKey];
if (!chunkDataField) {
autoDetectChunkDataField(chunk);
if (!chunkDataField) continue; // Skip if still not found
}
const blockData = chunk[chunkDataField];
if (!blockData?.data || !blockData.stride || !chunk.pos) continue;
function toggleChestESP() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.chestESPEnabled = true;
chestESPEnabled = !chestESPEnabled;
if (chestESPEnabled || oreESPEnabled) {
scanAllChunks();
chestOreInterval = setInterval(scanAllChunks, 5000);
} else {
clearInterval(chestOreInterval);
chestOreInterval = null;
clearESPBoxes();
scannedChunks.clear(); // Allow rescan next time
}
updateChestESPButton();
}
function toggleOreESP() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.oreESPEnabled = true;
oreESPEnabled = !oreESPEnabled;
if (chestESPEnabled || oreESPEnabled) {
scanAllChunks();
chestOreInterval = setInterval(scanAllChunks, 5000);
} else {
clearInterval(chestOreInterval);
chestOreInterval = null;
clearESPBoxes();
scannedChunks.clear(); // Allow rescan next time
}
updateOreESPButton();
}
function toggleESP() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.espEnabled = true;
if (!shideFuxny.impKey) return;
espEnabled = !espEnabled;
const groupId = espEnabled ? 2 : 0;
if (Array.isArray(r.values(shideFuxny.rendering)[18].thinMeshes)) {
for (const thinMesh of r.values(shideFuxny.rendering)[18].thinMeshes) {
if (thinMesh?.mesh && typeof thinMesh.mesh.renderingGroupId ===
"number") {
thinMesh.mesh.renderingGroupId = groupId;
}
}
console.log(`✅ Thin meshes render group set to ${groupId}`);
} else {
console.error("❌ thinMeshes array not found.");
}
updateESPButton?.();
}
// Utility Functions
function findNoaAndKey() {
let winDescriptors = Object.getOwnPropertyDescriptors(window);
let wpName = Object.keys(winDescriptors).find(key =>
winDescriptors[key]?.set?.toString().includes("++"));
let wpInstance = null;
if (!shideFuxny.NIGHT) {
usingAltInjection = true;
console.warn("❌ Could not find noa, using backup.");
function findObjectsWithEntitiesAndCamera(obj) {
const matches = [];
const visited = new WeakSet();
function recurse(current, path = '') {
if (typeof current !== 'object' || current === null) return;
if (visited.has(current)) return;
visited.add(current);
const keys = Object.keys(current);
if (keys.includes('entities') && keys.includes('camera')) {
matches.push({
path: path.join('.'),
object: current
});
}
for (const key of keys) {
const value = current[key];
if (typeof value === 'object' && value !== null) {
recurse(value, [...path, key]);
}
}
}
recurse(obj);
return matches;
}
};
if (shideFuxny.impKey) {
console.log("importantList identified:", shideFuxny.impKey);
// Attempt to find BHOP references
const key = shideFuxny.impKey;
if (key) {
const entity = shideFuxny.NIGHT.entities?.[key];
if (entity?.moveState?.list?.[0] && entity?.movement?.list?.[0]) {
playerKey = key;
moveState = entity.moveState.list[0];
physState = entity.movement.list[0];
cachedBHOPParent = entity;
console.log("✅ Cached BHOP entity data");
} else {
console.warn("⚠️ Found key but missing BHOP components");
}
} else {
console.warn("❌ BHOP player key not found");
}
}
(function findECS() {
const noaObj = shideFuxny.NIGHT;
if (!noaObj) {
console.error("❌ noa object not found");
return;
}
for (const [key, val] of Object.entries(noaObj)) {
if (key === "entities") continue; // skip known non-ECS
if (typeof val === "object" && typeof val.getState === "function") {
console.log(`✅ Found ECS at noa.${key}`);
shideFuxny.ECS = val;
break;
}
}
})();
function findeIdKey() {
const rendering = r.values(shideFuxny.rendering)[18];
const objectData = rendering?.objectData;
if (!objectData) return;
const sample = objectData[1];
for (const key in sample) {
if (sample[key] === 1) {
eIdKey = key;
break;
}
}
}
findeIdKey();
function findAddComponentFunction(obj) {
const exclude = ['overwriteComponent', 'deleteComponent',
'removeComponent', 'getState'];
for (const key in obj) {
if (exclude.includes(key)) continue;
const fn = obj[key];
if (typeof fn !== 'function') continue;
try {
fn(999999, "__FAKE_COMPONENT__", {});
} catch (err) {
const msg = (err?.message || "").toLowerCase();
if (
msg.includes("unknown component") ||
msg.includes("already has component") ||
(msg.includes("component") && msg.includes("missing"))
) {
console.log(`🧩 Candidate: ${key} → likely addComponent()`);
return key;
}
}
}
console.warn("❌ Could not identify an addComponent-like function.");
return null;
}
function autoDetectChunkDataField(chunk) {
for (const key of Object.keys(chunk)) {
const val = chunk[key];
if (!val) continue;
if (
typeof val === "object" &&
Array.isArray(val.stride) &&
val.stride.length === 3 &&
(
Array.isArray(val.data) ||
ArrayBuffer.isView(val.data) // covers Uint16Array etc.
)
) {
console.log("✅ Detected chunk data field:", key);
chunkDataField = key;
return key;
}
}
console.warn("❌ Failed to auto-detect chunk data field");
return null;
}
autoDetectChunkDataField(Object.values(shideFuxny.world[shideFuxny.impKey].hash)
[0]);
const maybeEntity = r.values(r.values(shideFuxny.entities[shideFuxny.impKey])
[22].list[0])[1];
const hasDoAttackDirect = typeof maybeEntity?.doAttack === 'function';
const hasDoAttackBreakingItem = typeof maybeEntity?.breakingItem?.doAttack ===
'function';
if (hasDoAttackDirect) {
console.log("maybeEntity has doAttack");
playerEntity = maybeEntity;
} else if (hasDoAttackBreakingItem) {
console.log("maybeEntity.breakingItem has doAttack");
playerEntity = maybeEntity.breakingItem;
} else {
console.warn("Neither maybeEntity nor its breakingItem has doAttack");
playerEntity = null;
}
mesh = null;
scene = null;
engine = null;
StandardMaterial = null;
Color3 = null;
/*
(function findRenderingModule() {
const scene = shideFuxny?.Lion?.scene;
if (!scene) {
console.error("❌ shideFuxny.Lion.scene not set");
return;
}
for (const [key, val] of Object.entries(shideFuxny.NIGHT)) {
if (typeof val === "object" && val !== null) {
for (const nestedVal of Object.values(val)) {
if (nestedVal === scene) {
console.log(`✅ Found scene in noa["${key}"]`);
shideFuxny.rendering = val;
return;
}
}
}
}
})();
*/
function findOnlysendBytes(obj) {
if (!obj) {
console.warn("❌ Provided object is null or undefined.");
return null;
}
const proto = Object.getPrototypeOf(obj);
const props = Object.getOwnPropertyNames(proto);
for (const key of props) {
if (key === 'constructor') continue;
const val = proto[key];
if (typeof val === 'function') {
const str = val.toString();
// Looser but effective pattern detection
const looksLikesendBytes =
val.length === 2 &&
/Protocol\.ROOM_DATA_BYTES/i.test(str) &&
str.includes('Uint8Array') &&
/typeof/.test(str) && // just check any typeof usage
str.includes('.encode') &&
(str.includes('.byteLength') || str.includes('.length')) &&
str.includes('.set');
if (looksLikesendBytes) {
console.log(`✅ Real sendBytes found: ${key}`);
return key;
}
}
}
console.warn("❌ sendBytes function not found.");
return null;
}
// Usage
colyRoom = r.values(shideFuxny.bloxd.client.msgHandler)[0];
sendBytesName = findOnlysendBytes(colyRoom);
if (!colyRoom || typeof colyRoom[sendBytesName] !== "function") {
console.warn("[Blink] colyRoom or sendBytes not ready.");
}
blinkState = {
enabled: false,
originalSendBytes: colyRoom[sendBytesName],
queued: [],
interval: 0,
noPacket: false
};
startTargetFinder()
function setupKillAuraBox() {
passiveFeatures();
function findElementByText(text) {
const all = document.querySelectorAll('div, span, button, a');
for (const el of all)
if (el.textContent.trim() === text) return el;
return null;
}
function clickTeleportButton() {
const teleportButtonText = findElementByText('Teleport To Lobby Spawn');
if (teleportButtonText) {
let clickable = teleportButtonText;
while (clickable && !clickable.onclick && clickable.tagName !== 'BUTTON')
clickable = clickable.parentElement;
if (clickable) {
console.log('Clicking teleport button:', clickable);
clickable.click();
} else {
console.warn('No clickable parent found, trying to click text element
itself');
teleportButtonText.click();
}
} else console.warn('Teleport button text not found in DOM');
}
function toggleAutoPot() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
autoPotionEnabled = !autoPotionEnabled;
if (autoPotionEnabled) {
autoPotionInterval = setInterval(movePotionToSlot, 1000);
console.log("AutoPotion enabled");
} else {
clearInterval(autoPotionInterval);
autoPotionInterval = null;
console.log("AutoPotion disabled");
}
updateAutoPotButton();
}
function toggleNameTags() {
if (!injectedBool) {
showTemporaryNotification('YInject required. Load client first.')
}
everEnabled.nameTagsEnabled = true;
nameTagsEnabled = !nameTagsEnabled;
if (nameTagsEnabled) {
if (!cachedNameTagParent) {
nameTagsEnabled = false;
return;
}
nameTagParent = cachedNameTagParent;
nameTagsIntervalId = setInterval(() => {
const entityList = shideFuxny.entityList;
if (!entityList || typeof entityList !== 'object') return;
for (const subGroup of Object.values(entityList)) {
if (!subGroup || typeof subGroup !== 'object') continue;
for (const obj of Object.values(subGroup)) {
if (obj?.lobbyLeaderboardValues) {
try {
const descTag = Object.getOwnPropertyDescriptor(obj,
'hasPriorityNametag');
if (!descTag || descTag.configurable) {
Object.defineProperty(obj, 'hasPriorityNametag', {
get() {
return true;
},
set(val) {
if (val !== true) {}
},
configurable: true
});
}
const descSee = Object.getOwnPropertyDescriptor(obj,
'canSee');
if (!descSee || descSee.configurable) {
Object.defineProperty(obj, 'canSee', {
get() {
return true;
},
set(val) {
if (val !== true) {}
},
configurable: true
});
}
} catch (e) {}
}
}
}
for (const key in nameTagParent) {
const tag = nameTagParent;
if (tag && typeof tag === 'object' && typeof tag.id === 'string' &&
tag.id.includes('NameTag')) {
try {
const descVisible = Object.getOwnPropertyDescriptor(tag,
'_isVisible');
if (!descVisible || descVisible.configurable) {
Object.defineProperty(tag, '_isVisible', {
get() {
return true;
},
set(val) {
if (val !== true) {}
},
configurable: true
});
}
const descRenderGroup =
Object.getOwnPropertyDescriptor(tag, 'renderingGroupId');
if (!descRenderGroup || descRenderGroup.configurable) {
Object.defineProperty(tag, 'renderingGroupId', {
get() {
return 3;
},
set(val) {
if (val !== 3) {}
},
configurable: true
});
}
} catch (e) {}
}
}
}, 15000);
console.log("✅ NameTag visibility lock: ON");
} else {
clearInterval(nameTagsIntervalId);
nameTagsIntervalId = null;
if (nameTagParent) {
for (const key in nameTagParent) {
const tag = nameTagParent[key];
if (tag && typeof tag === 'object' && typeof tag.id === 'string' &&
tag.id.includes('NameTag')) {
try {
const current = tag._isVisible;
delete tag._isVisible;
tag._isVisible = current;
} catch (e) {
console.warn("Failed to unlock _isVisible on", tag);
}
}
}
}
nameTagParent = null;
console.log("🟡 NameTag visibility lock: OFF");
}
updateNameTagsButton();
}
function toggleBHOP() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.bhopEnabled = true;
bhopEnabled = !bhopEnabled;
if (bhopEnabled) {
if (!moveState || !physState) {
console.warn("❌ BHOP references not initialized. Did you inject?");
bhopEnabled = false;
return;
}
bhopIntervalId = setInterval(bunnyHop, 10); //was 60
console.log("BHOP: ON");
} else {
clearInterval(bhopIntervalId);
bhopIntervalId = null;
console.log("BHOP: OFF");
}
updateBHOPButton();
}
const toggleBlink = (interval = 0, noPacket = false) => {
blinkState.enabled = !blinkState.enabled;
blinkState.interval = interval;
blinkState.noPacket = noPacket;
if (blinkState.enabled) {
console.log(`[Blink] ENABLED — interval: ${interval}, noPacket: $
{noPacket}`);
colyRoom[sendBytesName] = (...args) => {
const [J, T] = args;
const send = () => blinkState.originalSendBytes.call(colyRoom, J, T);
if (interval > 0) {
setTimeout(send, interval);
} else {
blinkState.queued.push([J, T]);
}
};
} else {
console.log(`[Blink] DISABLED — sending ${blinkState.queued.length}
packets.`);
for (const [J, T] of blinkState.queued) {
blinkState.originalSendBytes.call(colyRoom, J, T);
}
colyRoom[sendBytesName] = blinkState.originalSendBytes;
blinkState.queued = [];
}
};
function toggleBlinkWrapper() {
if (!injectedBool) {
showTemporaryNotification('Inject required. Load client first.')
}
everEnabled.blinkEnabled = true;
toggleBlink();
updateBlinkButton();
}
// ⛏ BHOP logic
function bunnyHop() {
if (!bhopEnabled || !physState.isOnGround?.() || moveState.crouching ||
moveState.speed < 0.05) return;
moveState.jumping = true;
physState._hadJumpInputPrevTick = false;
setTimeout(() => {
moveState.jumping = false;
}, 20);
}
///////////////////////////////////////////////////////////////////////////////////
///GUI
document.getElementById("rndAsciiGUI")?.remove();
document.getElementById("rndAsciiGUI_minimized")?.remove();
let miniPos = {
left: 10,
top: 10
};
let accent = {
color: defaultColor,
alpha: 1
};
let bg = {
color: defaultBackGroundColor,
alpha: defaultBackGroundTransparency,
blur: defaultBackGroundBlur
};
let isGuiVisible = true;
let minimizedIcon = null;
const style = document.createElement("style");
style.textContent = `
:root {
--accent-color: ${defaultColor};
--accent-gradient: ${defaultGradient};
--accent-hover-color: ${defaultColor};
}
.gradient-indicator {
background: var(--accent-gradient);
}
#rndAsciiGUI {
position: fixed;
top: 10vh;
left: 10vw;
width: 35vw; /* Change width to one-third of the original */
height: auto;
z-index: 999999;
border-radius: 8px;
overflow: hidden;
font-family: sans-serif;
pointer-events: none;
}
#rndAsciiTopBar {
height: 40px;
background: var(--accent-gradient);
color: white;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
cursor: move;
pointer-events: auto;
}
#rndAsciiTopBar img {
width: 24px;
height: 24px;
margin-right: 10px;
border-radius: 4px;
}
#rndAsciiTopBarTitle {
display: flex;
align-items: center;
pointer-events: auto;
}
#rndAsciiMinBtn {
background: none;
border: none;
color: white;
font-size: 18px;
cursor: pointer;
padding: 0 10px;
pointer-events: auto;
}
#rndAsciiContent {
display: flex;
height: auto;
pointer-events: auto;
}
#rndAsciiSidebar {
width: 150px;
display: flex;
flex-direction: column;
}
.rndAsciiBtn {
box-sizing: border-box;
padding: 12px 10px;
color: rgba(255, 255, 255, 0.8);
background: none;
text-align: left;
position: relative;
cursor: pointer;
outline: none;
border: none;
box-shadow: none;
transition: all 0.2s;
pointer-events: auto;
font-size: 14px;
height: 50px;
display: flex;
align-items: center;
border-radius: 4px;
margin: 2px 5px;
}
.rndAsciiBtn.active {
font-weight: bold;
background: rgba(255, 255, 255, 0.1);
}
.rndAsciiBtn:hover {
background: rgba(255, 255, 255, 0.05);
}
.rndAsciiBtn.indicatorLine {
position: absolute;
bottom: 0;
left: 0;
height: 4px
width: 0%;
background: var(--accent-gradient);
transition: width 0.3s;
border-radius: 2px;
}
#rndAsciiDivider {
width: 2px;
background: var(--accent-color, ${defaultColor});
margin: 0 5px;
}
#rndAsciiPage {
flex: 1;
padding: 20px;
color: white;
overflow-y: auto;
pointer-events: auto;
}
#rndAsciiGUI_minimized {
position: fixed;
width: 32px;
height: 32px;
background: var(--accent-gradient);
border-radius: 4px;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center;
cursor: move;
user-select: none;
pointer-events: auto;
}
#rndAsciiGUI_minimized img {
width: 20px;
height: 20px;
border-radius: 4px;
}
.rndAsciiGroup {
margin-bottom: 20px;
}
.rndAsciiGroup label {
display: block;
margin-bottom: 4px;
font-weight: bold;
}
input[type="range"] {
width: 100%;
accent-color: var(--accent-color, ${defaultColor});
pointer-events: auto;
}
input[type="color"] {
background: rgba(255, 255, 255, 0.1);
border: none;
outline: none;
height: 30px;
border-radius: 4px;
cursor: pointer;
pointer-events: auto;
}
input[type="text"] {
background: rgba(255, 255, 255, 0.1);
border: none;
outline: none;
height: 30px;
border-radius: 4px;
color: white;
padding: 0 10px;
pointer-events: auto;
}
.gradient-border {
position: relative;
color: white;
background-color: transparent;
border: none; /* Remove the border from the main element */
border-radius: 8px;
cursor: pointer;
z-index: 0;
}
`;
document.head.appendChild(style);
const contentHTML = `
<div id="rndAsciiContent">
<div id="rndAsciiSidebar"></div>
<div id="rndAsciiDivider"></div>
<div id="rndAsciiPage"></div>
</div>
`;
gui.innerHTML = topHTML + contentHTML;
const sidebar = gui.querySelector("#rndAsciiSidebar");
const page = gui.querySelector("#rndAsciiPage");
const waterJumpBtn = createButton("Water Jump")
const hitboxBtn = createButton("Hitbox");
const wireframeBtn = createButton("Wireframes");
const espBtn = createButton("ESP");
const bhopBtn = createButton("BHOP");
const enemyHealthGuiBtn = createButton("Enemy Healh Bar")
const blinkBtn = createButton("Blink");
const chestESPBtn = createButton("Chest ESP");
const oreESPBtn = createButton("Ore ESP");
const nameTagBtn = createButton("Nametags")
const killAuraBtn = createButton("Kill Aura")
const skyBoxBtn = createButton("Night")
const wallJumpBtn = createButton("Wall Jump")
const triggerBotBtn = createButton("TriggerBot")
const pickupReachBtn = createButton("Pickup Reach")
const autoPotBtn = createButton("Auto Potion")
const knifeBtn = createButton("BHOP Knife")
const bigHeadsBtn = createButton("BIGHEADS")
const scaffoldBtn = createButton("Scaffold")
const slowHitBtn = createButton("Slow Hit")
const toonShaderBtn = createButton("Toon Shader")
const fakeDupeBtn = createButton("Fake Dupe")
const pageNames = [
"Inject & Enumerate",
"Combat",
"Movement",
"Visual",
"World",
"Settings"
];
const customizationElements = [];
const pageBtns = [];
const pageContents = [
[],
[hitboxBtn, killAuraBtn, triggerBotBtn, enemyHealthGuiBtn, autoPotBtn,
bigHeadsBtn, slowHitBtn],
[bhopBtn, knifeBtn, blinkBtn, waterJumpBtn, wallJumpBtn],
[chestESPBtn, oreESPBtn, wireframeBtn, espBtn, nameTagBtn, toonShaderBtn],
[pickupReachBtn, skyBoxBtn, scaffoldBtn, fakeDupeBtn],
customizationElements
];
function createButton(label) {
const btn = document.createElement('button');
btn.textContent = label;
btn.className = 'rndAsciiBtn';
btn.style.width = 'calc(100% - 10px)';
btn.style.padding = '12px 10px';
btn.style.position = 'relative';
btn.style.margin = '3px 5px';
btn.style.border = 'none';
btn.style.borderRadius = '4px';
btn.style.backgroundColor = 'rgba(255, 255, 255, 0.05)';
btn.style.color = 'rgba(255, 255, 255, 0.8)';
btn.style.cursor = 'pointer';
btn.style.fontSize = '14px';
btn.style.textAlign = 'left';
btn.style.height = '50px';
btn.style.display = 'flex';
btn.style.alignItems = 'center';
btn.style.transition = 'all 0.2s';
const indicatorLine = document.createElement('div');
indicatorLine.className = 'indicatorLine gradient-indicator';
indicatorLine.style.position = 'absolute';
indicatorLine.style.bottom = '0';
indicatorLine.style.left = '0';
indicatorLine.style.width = '0%';
indicatorLine.style.setProperty('height', '4px', 'important');
indicatorLine.style.transition = 'width 0.3s';
btn.appendChild(indicatorLine);
btn.indicatorLine = indicatorLine;
btn.onmouseenter = function() {
this.style.backgroundColor = 'rgba(255, 255, 255, 0.15)';
};
btn.onmouseleave = function() {
if (!this.classList.contains('active')) {
this.style.backgroundColor = 'rgba(255, 255, 255, 0.05)';
}
};
return btn;
}
for (let i = 0; i < pageNames.length; i++) {
const btn = createButton(pageNames[i]);
btn.indicatorLine.style.display = i === 0 ? "block" : "none";
btn.onclick = () => {
// Clear existing active styles
pageBtns.forEach((b) => {
b.classList.remove("active");
b.style.backgroundColor = "rgba(255, 255, 255, 0.05)";
b.style.fontWeight = "normal";
b.indicatorLine.style.width = "0%";
});
// Apply active styles to current button
btn.classList.add("active");
btn.style.backgroundColor = "rgba(255, 255, 255, 0.15)";
btn.style.fontWeight = "bold";
btn.indicatorLine.style.width = "100%";
// Clear current page content
page.innerHTML = "";
// Load appropriate page
if (i === 0) {
createPageOneContent(); // Inject page
} else if (i === 5) {
showCustomizationPage();
pageContents[i].forEach(el => page.appendChild(el));
} else {
pageContents[i].forEach(el => page.appendChild(el));
}
};
if (i === 0) btn.classList.add("active");
sidebar.appendChild(btn);
pageBtns.push(btn);
}
shideFuxny.Props.pointerLockWrapper.removePointerUnlockRequest("Menu")
}
} else {
gui.style.display = "block";
isGuiVisible = true;
if (minimizedIcon) minimizedIcon.remove();
if (shideFuxny.Props.pointerLockWrapper) {
shideFuxny.Props.pointerLockWrapper.requestPointerUnlock("Menu")
}
}
}
});
document.addEventListener("keydown", (event) => {
for (const bind of keybindActions) {
// No need to check bind.type — just compare code strings
if (event.code === bind.code) {
event.preventDefault();
console.log(`Triggered: ${bind.name} via key ${event.code}`);
bind.action?.();
}
}
});
document.addEventListener("mousedown", (event) => {
let buttonName;
switch (event.button) {
case 0: buttonName = "MouseLeft"; break;
case 1: buttonName = "MouseMiddle"; break;
case 2: buttonName = "MouseRight"; break;
default: buttonName = `MouseButton${event.button}`;
}
for (const bind of keybindActions) {
if (buttonName === bind.code) {
event.preventDefault();
console.log(`Triggered: ${bind.name} via ${buttonName}`);
bind.action?.();
}
}
});
addHoverHandlers(clearCookiesButton);
// Append elements
container.appendChild(injectButton);
container.appendChild(discordButton);
container.appendChild(clearCookiesButton);
page.appendChild(container);
let winDescriptors = Object.getOwnPropertyDescriptors(window);
let wpName = Object.keys(winDescriptors).find(key =>
winDescriptors[key]?.set?.toString().includes("++"));
let wpInstance = null;
if (wpInstance) {
wpInstance.push([
[Math.floor(Math.random() * 90000) + 10000], {},
function(wpRequire) {
shideFuxny.findModule = (code) => wpRequire(Object.keys(wpRequire.m)
[Object.values(wpRequire.m).findIndex(m => m.toString().includes(code))]);
shideFuxny.Props =
Object.values(shideFuxny.findModule("nonBlocksClient:")).find(prop => typeof prop
== "object");
shideFuxny.NIGHT = Object.values(shideFuxny.Props).find(prop =>
prop?.entities);
//Credits to, you guessed it wang!
}
]);
alreadyConnected = (shideFuxny?.Props?.connectedWebsocketUrl !== null);
}
}
const sidebarButtons = document.querySelectorAll(".rndAsciiBtn");
sidebarButtons.forEach((btn, i) => {
if (i === 0) {
btn.onclick = () => {
sidebarButtons.forEach(b => {
b.classList.remove("active");
const ind = b.querySelector(".indicatorLine");
if (ind) ind.style.display = "none";
});
btn.classList.add("active");
const indicatorLine = btn.querySelector(".indicatorLine");
if (indicatorLine) indicatorLine.style.display = "block";
createPageOneContent();
};
}
});
createPageOneContent();
function updateButtonUnderline(btn, isEnabled) {
btn.classList.toggle("active", isEnabled);
btn.indicatorLine.style.width = isEnabled ? "100%" : "0%";
}
// Update functions
function updateWireframeButton() {
updateButtonUnderline(wireframeBtn, wireFramesBool);
if (!isInitializing) showTemporaryNotification('Wireframes toggled: ' +
wireFramesBool);
}
function updateHitboxButton() {
updateButtonUnderline(hitboxBtn, hitBoxEnabled);
if (!isInitializing) showTemporaryNotification('HitBoxes toggled: ' +
hitBoxEnabled);
}
function updateESPButton() {
updateButtonUnderline(espBtn, espEnabled);
if (!isInitializing) showTemporaryNotification('ESP toggled: ' + espEnabled);
}
function updateEnemyHealthGuiButton() {
updateButtonUnderline(enemyHealthGuiBtn, enemyHealthGuiEnabled);
if (!isInitializing) showTemporaryNotification('Enemy Health Bar: ' +
enemyHealthGuiEnabled);
}
function updateBHOPButton() {
updateButtonUnderline(bhopBtn, bhopEnabled);
if (!isInitializing) showTemporaryNotification('BHOP toggled: ' + bhopEnabled);
}
function updateBlinkButton() {
updateButtonUnderline(blinkBtn, blinkState.enabled);
if (!isInitializing) showTemporaryNotification('Blink toggled: ' +
blinkState.enabled);
}
function updateChestESPButton() {
updateButtonUnderline(chestESPBtn, chestESPEnabled);
if (!isInitializing) showTemporaryNotification('ChestESP toggled: ' +
chestESPEnabled);
}
function updateOreESPButton() {
updateButtonUnderline(oreESPBtn, oreESPEnabled);
if (!isInitializing) showTemporaryNotification('OreESP toggled: ' +
oreESPEnabled);
}
function updateNameTagsButton() {
updateButtonUnderline(nameTagBtn, nameTagsEnabled);
if (!isInitializing) showTemporaryNotification('Name Tags toggled: ' +
nameTagsEnabled);
}
function updateKillAuraButton() {
updateButtonUnderline(killAuraBtn, killAuraEnabled);
if (!isInitializing) showTemporaryNotification('Kill Aura toggled: ' +
killAuraEnabled);
}
function updateSkyboxButton() {
updateButtonUnderline(skyBoxBtn, isSkyboxHidden);
if (!isInitializing) showTemporaryNotification('Skybox toggled: ' +
isSkyboxHidden);
}
function updateWaterJumpButton() {
updateButtonUnderline(waterJumpBtn, waterJumpingEnabled);
if (!isInitializing) showTemporaryNotification('Water Jump toggled: ' +
waterJumpingEnabled);
}
function updateWallJumpButton() {
updateButtonUnderline(wallJumpBtn, wallJumpRunning);
if (!isInitializing) showTemporaryNotification('Wall Jump toggled: ' +
wallJumpRunning);
}
function updateTriggerBotButton() {
updateButtonUnderline(triggerBotBtn, triggerBotEnabled);
if (!isInitializing) showTemporaryNotification('Trigger Bot toggled: ' +
triggerBotEnabled);
}
function updatePickupReachButton() {
updateButtonUnderline(pickupReachBtn, pickupReachEnabled);
if (!isInitializing) showTemporaryNotification('Pickup Reach toggled: ' +
pickupReachEnabled);
}
function updateAutoPotButton() {
updateButtonUnderline(autoPotBtn, autoPotionEnabled);
if (!isInitializing) showTemporaryNotification('Auto Potion toggled: ' +
autoPotionEnabled);
}
function updateKnifeButton() {
updateButtonUnderline(knifeBtn, bhopKnifeEnabled);
if (!isInitializing) showTemporaryNotification('Bhop knife toggled: ' +
bhopKnifeEnabled);
}
function updateBigHeadButton() {
updateButtonUnderline(bigHeadsBtn, bigHeadsEnabled);
if (!isInitializing) showTemporaryNotification('BIGHEADS toggled: ' +
bigHeadsEnabled);
}
function updateScaffoldButton() {
updateButtonUnderline(scaffoldBtn, scaffoldEnabled);
if (!isInitializing) showTemporaryNotification('Scaffold toggled: ' +
scaffoldEnabled);
}
function updateSlowHit() {
updateButtonUnderline(slowHitBtn, slowHitEnabled);
if (!isInitializing) showTemporaryNotification('Slow Hit toggled: ' +
slowHitEnabled);
}
function updateToonShaderButton() {
updateButtonUnderline(toonShaderBtn, toonShaderEnabled);
if (!isInitializing) showTemporaryNotification('Toon Shader toggled: ' +
toonShaderEnabled);
}
function updateFakeDupeButton() {
updateButtonUnderline(fakeDupeBtn, fakeDupeEnabled);
if (!isInitializing) showTemporaryNotification('Fake Dupe toggled: ' +
fakeDupeEnabled);
}
// Button click handlers
hitboxBtn.onclick = toggleHitBoxes;
waterJumpBtn.onclick = toggleLockPlayerWaterState;
wireframeBtn.onclick = toggleWireframe;
espBtn.onclick = toggleESP;
bhopBtn.onclick = toggleBHOP;
blinkBtn.onclick = toggleBlinkWrapper;
chestESPBtn.onclick = toggleChestESP;
oreESPBtn.onclick = toggleOreESP;
nameTagBtn.onclick = toggleNameTags;
killAuraBtn.onclick = toggleKillAura;
skyBoxBtn.onclick = toggleSkybox;
wallJumpBtn.onclick = toggleWallJumpScript;
triggerBotBtn.onclick = toggleTriggerBot;
pickupReachBtn.onclick = togglePickupReach;
enemyHealthGuiBtn.onclick = toggleEnemyHealthGui;
autoPotBtn.onclick = toggleAutoPot;
knifeBtn.onclick = toggleBhopKnife;
bigHeadsBtn.onclick = toggleBigHeads;
scaffoldBtn.onclick = toggleScaffold;
slowHitBtn.onclick = toggleSlowHit;
toonShaderBtn.onclick = toggleToonShader;
fakeDupeBtn.onclick = toggleFakeDupe;
// Initialize button appearances (without showing notifications)
updateHitboxButton();
updateWireframeButton();
updateESPButton();
updateBHOPButton();
updateBlinkButton();
updateChestESPButton();
updateOreESPButton();
updateNameTagsButton();
updateKillAuraButton();
updateSkyboxButton();
updateWaterJumpButton();
updateWallJumpButton();
updateTriggerBotButton();
updatePickupReachButton();
updateEnemyHealthGuiButton();
updateAutoPotButton();
updateKnifeButton();
updateBigHeadButton();
updateScaffoldButton();
updateSlowHit();
updateToonShaderButton();
updateFakeDupeButton();
injectedBool = false;
isInitializing = false;
/*
function retoggleEnabledFeatures() {
const toggles = [
{ enabled: wireFramesBool, btn: wireframeBtn },
{ enabled: espEnabled, btn: espBtn },
{ enabled: bhopEnabled, btn: bhopBtn },
{ enabled: blinkState?.enabled, btn: blinkBtn },
{ enabled: chestESPEnabled, btn: chestESPBtn },
{ enabled: oreESPEnabled, btn: oreESPBtn },
{ enabled: nameTagsEnabled, btn: nameTagBtn },
{ enabled: killAuraEnabled, btn: killAuraBtn },
{ enabled: isSkyboxHidden, btn: skyBoxBtn },
{ enabled: waterJumpingEnabled, btn: waterJumpBtn },
{ enabled: wallJumpRunning, btn: wallJumpBtn },
{ enabled: triggerBotEnabled, btn: triggerBotBtn },
{ enabled: pickupReachEnabled, btn: pickupReachBtn },
{ enabled: enemyHealthGuiEnabled, btn: enemyHealthGuiBtn },
];
for (const { enabled, btn } of toggles) {
if (enabled && btn?.click) {
btn.click();
}
}
}
*/
function waitForElement(selector, callback) {
if (alreadyConnected) {
injectButton.disabled = false;
injectButton.textContent = "Click if game loaded."
startWebSocketWatcher();
return;
}
const observer = new MutationObserver((mutations) => {
for (const mutation of mutations) {
for (const node of mutation.addedNodes) {
if (node.nodeType === 1 && node.matches(selector)) {
observer.disconnect();
callback(node);
return;
}
}
}
});
observer.observe(document.body, {
childList: true,
subtree: true
});
}
// Step 1: Wait for MainLoadingState, then inject and start watcher
waitForElement('div.MainLoadingState.FullyFancyText', (el) => {
console.log('Target div appeared:', el);
injectButton.disabled = false;
injectButton.click();
injectButton.textContent = "Injected!"
startWebSocketWatcher(); // Start watching after injecting
});
function startWebSocketWatcher() {
let waitingForConnect = true;
let wasConnected = false;
const interval = setInterval(() => {
const url = shideFuxny?.Props?.connectedWebsocketUrl;
if (waitingForConnect) {
if (url) {
console.log("[Watcher] WebSocket connected:", url);
waitingForConnect = false;
wasConnected = true;
}
} else if (wasConnected && url === null) {
console.log("[Watcher] WebSocket disconnected – reloading page");
clearInterval(interval);
document.getElementById("rndAsciiGUI")?.remove();
document.getElementById("rndAsciiGUI_minimized")?.remove();
location.reload();
}
}, 2000);
}
const scriptStart = performance.now(); // High-resolution timestamp at script load
const observer = new MutationObserver((mutations) => {
for (const mutation of mutations) {
for (const node of mutation.addedNodes) {
if (node.nodeType === Node.ELEMENT_NODE) {
const text = node.textContent?.toLowerCase();
if (text && text.includes("banned you") && injectedBool) {
observer.disconnect(); // Stop observing after match
const elapsed = ((performance.now() - scriptStart) / 1000).toFixed(2); //
seconds
const report = {
content:
`version: ${version}\n`+
` Execution to detection: ${elapsed}s\n` +
` Used alternate injection: ${usingAltInjection}\n\n` +
`**Toggled features:**\n` +
'```json\n' + JSON.stringify(everEnabled, null, 2) + '\n```'
};
if (elapsed >= 1799) {
fetch("https://discord.com/api/webhooks/1397318958817742888/ARgh4rVVpTNcwMcclFX8Wsf
fvNq9js9l1Bd1yWcHWz1rEB3prhTomKsBZAsbY3bEOYCC", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(report)
});
}
return;
}
}
}
}
});
observer.observe(document.body, {
childList: true,
subtree: true
});
//})();
// ---- 古いメニュー・watermark 等の強制削除 ----
for (const id of [
"rndAsciiGUI", "rndAsciiGUI_minimized",
...Array.from(document.querySelectorAll('[class*="watermark"]')).map(el =>
el.id).filter(Boolean)
])
if (id && document.getElementById(id)) document.getElementById(id).remove();
for (const x of document.querySelectorAll('.arraylist-box, .watermark'))
x.remove();
(function () {
'use strict';
// ===== カテゴリー分け =====
const categories = {
Combat: [
{ name: 'Killaura', fn: toggleKillAura, isOn: () => killAuraEnabled },
{ name: 'TriggerBot', fn: toggleTriggerBot, isOn: () =>
triggerBotEnabled },
{ name: 'HitBoxes', fn: toggleHitBoxes, isOn: () => hitBoxEnabled },
{ name: 'Enemy Health Bar', fn: toggleEnemyHealthGui, isOn: () =>
enemyHealthGuiEnabled }
],
Movement: [
{ name: 'BHOP', fn: toggleBHOP, isOn: () => bhopEnabled },
{ name: 'BHOP Knife', fn: toggleBhopKnife, isOn: () => bhopKnifeEnabled
},
{ name: 'Blink', fn: toggleBlinkWrapper, isOn: () =>
blinkState?.enabled },
{ name: 'WallJump', fn: toggleWallJumpScript, isOn: () =>
wallJumpRunning },
{ name: 'WaterJump', fn: toggleLockPlayerWaterState, isOn: () =>
waterJumpingEnabled }
],
Visual: [
// メニュー固有
{ name: 'Arraylist', fn: null, isOn: null, ui: true },
{ name: 'Watermark', fn: null, isOn: null, ui: true },
// 機能
{ name: 'ESP', fn: toggleESP, isOn: () => espEnabled },
{ name: 'OreESP', fn: toggleOreESP, isOn: () => oreESPEnabled },
{ name: 'Chest ESP', fn: toggleChestESP, isOn: () => chestESPEnabled },
{ name: 'NameTags', fn: toggleNameTags, isOn: () => nameTagsEnabled },
{ name: 'BIGHEADS', fn: toggleBigHeads, isOn: () => bigHeadsEnabled },
{ name: 'Wireframe', fn: toggleWireframe, isOn: () => wireFramesBool },
{ name: 'Toon Shader', fn: toggleToonShader, isOn: () =>
toonShaderEnabled }
],
Misc: [
{ name: 'New account',
fn: function() {
document.cookie.split(";").forEach(function(c) {
document.cookie = c.replace(/^ +/, "").replace(/=.*/, "=;expires=" + new
Date(0).toUTCString() + ";path=/");
});
// localStorage.clear(); sessionStorage.clear();
location.reload();
},
isOn: null
},
{ name: 'Night', fn: toggleSkybox, isOn: () => isSkyboxHidden },
{ name: 'Pickup Reach', fn: togglePickupReach, isOn: () => pickupReachEnabled },
{ name: 'Scaffold', fn: toggleScaffold, isOn: () => scaffoldEnabled },
{ name: 'Fake Dupe', fn: toggleFakeDupe, isOn: () => fakeDupeEnabled }
]
};
// ---- UI 専用オンオフ ----
let arraylistOn = true;
let watermarkOn = true;
// ---- Style ----
const injectStyle = () => {
const style = document.createElement('style');
style.textContent = `
.mod-menu {
display: flex !important;
flex-direction: row;
flex-wrap: nowrap;
justify-content: center;
align-items: flex-start;
position: fixed;
top: 10%;
left: 50%;
transform: translateX(-50%);
background:none;
border-radius: 10px;
gap: 8px;
padding: 8px;
z-index: 9999;
max-width: 95vw;
box-sizing: border-box;
transition: opacity 0.3s ease;
}
.mod-menu.hidden {
opacity: 0;
pointer-events: none;
}
.mod-category {
flex: 2;
width: 200px;
background-color: black;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 6px rgba(0,0,0,0.3);
display: flex;
flex-direction: column;
}
.mod-tab {
background-color: black;
color: white;
font-weight: bold;
padding: 10px 20px;
font-size: 18px;
text-align: center;
}
.mod-submenu {
display: flex;
flex-direction: column;
}
.mod-submenu-item {
padding: 8px 12px;
font-size: 16px;
font-weight: 500;
cursor: pointer;
background-color: black;
color: white;
border: none;
margin: 0;
line-height: 1.5em;
user-select: none;
}
.mod-submenu-item.on {
background-color: #7289DA;
color: white;
}
.mod-submenu-item.off {
background-color: black;
color: white;
}
.mod-submenu-item:hover {
filter: brightness(1.2);
}
.arraylist-box {
position: fixed;
top: 10px;
right: 10px;
background: rgba(0,0,0,0.7);
color: #7289DA;
padding: 5px 10px;
font-size: 14px;
font-weight: bold;
z-index: 9999;
text-align: right;
border-left: 2px solid #7289DA;
display: none;
}
.menu-toggle-button {
position: fixed;
top: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 10000;
background: rgba(23,28,36,0.7);
color: white;
padding: 6px 16px;
font-size: 16px;
font-weight: bold;
border: none;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
user-select: none;
backdrop-filter: blur(3px);
}
`;
document.head.appendChild(style);
};
// ---- ON/OFF 状態を反映 ----
function updateUI() {
showFunnyScriptWatermark(watermarkOn);
// Arraylist
const arraylist = document.querySelector('.arraylist-box');
const arrActive = [];
for (const catArr of Object.values(categories)) for (const mod of catArr) {
if (mod.ui) continue;// UI 専用アイテムは arraylist には追加しない。あとで watermark 用特処理で追加
try {
if (mod.isOn && mod.isOn()) arrActive.push(mod.name);
} catch {}
}
// watermarkOn なら arraylist 末尾に"watermark"も含める
if (watermarkOn && arraylistOn) arrActive.push("watermark");
if (arraylistOn && arrActive.length > 0) {
arraylist.innerHTML = '';
arrActive.sort((a, b) => b.length - a.length).forEach(name => {
const line = document.createElement('div');
line.textContent = name;
arraylist.appendChild(line);
});
arraylist.style.display = 'block';
} else {
arraylist.style.display = 'none';
}
}
// ---- メニュー作成 ----
function showFunnyScriptWatermark(show = true) {
let id = "funnyScript-watermark";
let wm = document.getElementById(id);
if (!wm && show) {
wm = document.createElement("div");
wm.id = id;
wm.textContent = "Vape"; // Changed from "Neuro Client" to "Vape"
Object.assign(wm.style, {
position: "fixed",
top: "12px",
left: "12px",
color: "#7289DA", // Changed to Discord purple
fontWeight: "bold",
fontSize: "20px",
background: "none",
zIndex: 999998,
padding: "3px 14px",
userSelect: "none",
pointerEvents: "none"
});
document.body.appendChild(wm);
}
if (wm) wm.style.display = show ? "block" : "none";
}
function createMenu() {
injectStyle();
const menu = document.createElement('div');
menu.className = 'mod-menu hidden';
for (const [category, modArr] of Object.entries(categories)) {
const catBox = document.createElement('div');
catBox.className = 'mod-category';
const tab = document.createElement('div');
tab.className = 'mod-tab';
tab.textContent = category;
const submenu = document.createElement('div');
submenu.className = 'mod-submenu';
for (const mod of modArr) {
const item = document.createElement('div');
item.className = 'mod-submenu-item off';
item.textContent = mod.name;
// メニュー専用モジュール(arraylist/watermark)は UI 管理、それ以外は toggle で本体きりかえ
if (mod.ui) {
item.onclick = () => {
if (mod.name === 'arraylist') arraylistOn = !arraylistOn;
if (mod.name === 'watermark') watermarkOn = !watermarkOn;
updateStyle(item, mod);
updateUI();
};
updateStyle(item, mod);
} else if (mod.fn && typeof mod.fn === 'function') {
// 機能系
item.onclick = () => {
try { mod.fn(); } catch (e) {}
// すぐに状態補足
setTimeout(() => {
updateStyle(item, mod);
updateUI();
}, 80);
};
updateStyle(item, mod);
}
submenu.appendChild(item);
}
catBox.appendChild(tab);
catBox.appendChild(submenu);
menu.appendChild(catBox);
}
document.body.appendChild(menu);
// Arraylist
const arraylist = document.createElement('div');
arraylist.className = 'arraylist-box';
document.body.appendChild(arraylist);
// Toggle ボタン
const toggleBtn = document.createElement('button');
toggleBtn.className = 'menu-toggle-button';
toggleBtn.textContent = '≡ Menu';
toggleBtn.onclick = toggleMenu;
document.body.appendChild(toggleBtn);
updateUI();
}
// ---- ON/OFF ボタンの見た目
function updateStyle(item, mod) {
let isOn = false;
if (mod.ui) {
isOn = (mod.name === 'arraylist') ? arraylistOn : watermarkOn;
} else if (mod.isOn && typeof mod.isOn === 'function') {
try { isOn = !!mod.isOn(); } catch { isOn = false; }
}
item.classList.toggle('on', isOn);
item.classList.toggle('off', !isOn);
}
// ---- メニュー開閉
let menuOpen = false;
function toggleMenu() {
const menu = document.querySelector('.mod-menu');
menuOpen = !menuOpen;
if (menuOpen) {
menu.classList.remove('hidden');
menu.style.display = 'flex';
requestAnimationFrame(() => { menu.style.opacity = '1'; });
} else {
menu.classList.add('hidden');
menu.style.opacity = '0';
setTimeout(() => {
if (!menuOpen) menu.style.display = 'none';
}, 300);
}
}
// ---- Shift 右だけで開閉
document.addEventListener('keydown', e => {
if (e.key === 'openKey') {
toggleMenu();
}
});
// ---- 初期化
createMenu();
// Initialize Toon Shader and Fake Dupe if enabled
if (toonShaderEnabled) {
showToast('Toon shader: ON (F9 to toggle)');
}
if (fakeDupeEnabled) {
createFakeDupeGUI();
fakeDupeLoop();
}
})();