您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Mod menu for Bloxd.io
当前为
- // ==UserScript==
- // @name Bloxd.io Mod Menu | Made by iron web10
- // @namespace http://tampermonkey.net/
- // @version 0.2
- // @description Mod menu for Bloxd.io
- // @author iron web10
- // @match https://bloxd.io/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=bloxd.io
- // @grant none
- // @license iron web10
- // ==/UserScript==
- (function () {
- 'use strict';
- function getStorage(name) {
- return localStorage.getItem(name);
- }
- function setStorage(name, value) {
- localStorage.setItem(name, value);
- }
- function createMenu() {
- if (document.getElementById('modMenu')) return;
- let menu = document.createElement('div');
- menu.id = 'modMenu';
- menu.style.position = 'fixed';
- menu.style.top = getStorage('menuTop') || '50px';
- menu.style.left = getStorage('menuLeft') || '50px';
- menu.style.width = '200px';
- menu.style.background = 'rgba(0, 0, 0, 0.9)';
- menu.style.color = 'white';
- menu.style.padding = '15px';
- menu.style.borderRadius = '10px';
- menu.style.zIndex = '9999';
- menu.style.fontFamily = 'Arial';
- menu.style.boxShadow = '0 0 10px rgba(255, 255, 255, 0.2)';
- menu.style.display = getStorage('menuMinimized') === 'true' ? 'none' : 'flex';
- menu.style.flexDirection = 'column';
- menu.style.alignItems = 'center';
- let titleBar = document.createElement('div');
- titleBar.style.display = 'flex';
- titleBar.style.justifyContent = 'space-between';
- titleBar.style.alignItems = 'center';
- titleBar.style.cursor = 'move';
- titleBar.style.width = '100%';
- titleBar.style.padding = '5px';
- titleBar.style.background = '#333';
- titleBar.style.borderRadius = '5px';
- let title = document.createElement('h3');
- title.textContent = 'Bloxd.io Mod Menu';
- title.style.margin = '0';
- title.style.flexGrow = '1';
- title.style.color = 'white';
- let minimizeButton = document.createElement('button');
- minimizeButton.textContent = '-';
- minimizeButton.style.background = 'transparent';
- minimizeButton.style.color = 'white';
- minimizeButton.style.border = 'none';
- minimizeButton.style.cursor = 'pointer';
- titleBar.appendChild(title);
- titleBar.appendChild(minimizeButton);
- menu.appendChild(titleBar);
- let content = document.createElement('div');
- content.style.display = getStorage('menuMinimized') === 'true' ? 'none' : 'block';
- menu.appendChild(content);
- document.body.appendChild(menu);
- minimizeButton.addEventListener('click', function () {
- let isHidden = content.style.display === 'none';
- content.style.display = isHidden ? 'block' : 'none';
- setStorage('menuMinimized', !isHidden);
- });
- function createSwitch(name, callback) {
- let container = document.createElement('div');
- container.style.display = 'flex';
- container.style.justifyContent = 'space-between';
- container.style.alignItems = 'center';
- container.style.width = '100%';
- container.style.marginBottom = '5px';
- let label = document.createElement('span');
- label.textContent = name;
- label.style.flexGrow = '1';
- let switchContainer = document.createElement('label');
- switchContainer.style.position = 'relative';
- switchContainer.style.display = 'inline-block';
- switchContainer.style.width = '34px';
- switchContainer.style.height = '18px';
- let input = document.createElement('input');
- input.type = 'checkbox';
- input.style.opacity = '0';
- input.style.width = '0';
- input.style.height = '0';
- input.checked = getStorage(name) === 'true';
- let slider = document.createElement('span');
- slider.style.position = 'absolute';
- slider.style.cursor = 'pointer';
- slider.style.top = '0';
- slider.style.left = '0';
- slider.style.right = '0';
- slider.style.bottom = '0';
- slider.style.backgroundColor = input.checked ? '#4CAF50' : '#ccc';
- slider.style.transition = '.4s';
- slider.style.borderRadius = '18px';
- let circle = document.createElement('span');
- circle.style.position = 'absolute';
- circle.style.height = '14px';
- circle.style.width = '14px';
- circle.style.left = '2px';
- circle.style.bottom = '2px';
- circle.style.backgroundColor = 'white';
- circle.style.borderRadius = '50%';
- circle.style.transition = '.4s';
- circle.style.transform = input.checked ? 'translateX(16px)' : 'translateX(0)';
- slider.appendChild(circle);
- switchContainer.appendChild(input);
- switchContainer.appendChild(slider);
- container.appendChild(label);
- container.appendChild(switchContainer);
- content.appendChild(container);
- input.addEventListener('change', function () {
- slider.style.backgroundColor = this.checked ? '#4CAF50' : '#ccc';
- circle.style.transform = this.checked ? 'translateX(16px)' : 'translateX(0)';
- setStorage(name, this.checked);
- callback(this.checked);
- });
- if (input.checked) {
- callback(true);
- }
- }
- let isDragging = false;
- let offsetX, offsetY;
- titleBar.addEventListener('mousedown', function (event) {
- isDragging = true;
- offsetX = event.clientX - menu.getBoundingClientRect().left;
- offsetY = event.clientY - menu.getBoundingClientRect().top;
- titleBar.style.cursor = 'grabbing';
- });
- document.addEventListener('mousemove', function (event) {
- if (isDragging) {
- let left = event.clientX - offsetX;
- let top = event.clientY - offsetY;
- menu.style.left = `${left}px`;
- menu.style.top = `${top}px`;
- setStorage('menuLeft', left);
- setStorage('menuTop', top);
- }
- });
- document.addEventListener('mouseup', function () {
- isDragging = false;
- titleBar.style.cursor = 'move';
- });
- createSwitch('Full Screen Bypass', function (enabled) {
- if (enabled) {
- if (!window.fullScreenBypassInterval) {
- window.fullScreenBypassInterval = setInterval(function () {
- let elementToDelete = document.querySelector('.ForceRotateBackground.FullyFancyText');
- if (elementToDelete) {
- elementToDelete.remove();
- }
- }, 100);
- }
- } else {
- clearInterval(window.fullScreenBypassInterval);
- window.fullScreenBypassInterval = null;
- }
- });
- createSwitch('Bunny Jump', function (enabled) {
- if (enabled) {
- if (!window.infiniteJumpInterval) {
- window.infiniteJumpInterval = setInterval(function () {
- let event = new KeyboardEvent('keydown', {
- key: ' ',
- code: 'Space',
- keyCode: 32,
- which: 32,
- bubbles: true
- });
- document.dispatchEvent(event);
- }, 100);
- }
- } else {
- clearInterval(window.infiniteJumpInterval);
- window.infiniteJumpInterval = null;
- }
- });
- createSwitch('Add Remover', function (enabled) {
- if (enabled) {
- function hideAds() {
- var elementsToHide = document.querySelectorAll(
- '#gameadsbanner, .AdContainer, #cmpbox, .CookieConsent, [id*="fc-"], [class*="fc-"]'
- );
- elementsToHide.forEach(function(element) {
- if (element) {
- element.style.opacity = '0';
- element.style.width = '0';
- element.style.height = '0';
- element.style.overflow = 'hidden';
- element.style.position = 'absolute';
- }
- });
- console.log("🚀 Add removed!");
- }
- setInterval(hideAds, 2000);
- }
- });
- createSwitch('Custom Crosshair', function (enabled) {
- if (enabled) {
- let crosshairUrl = prompt("Ingrese la URL de la imagen para la Crosshair:", getStorage('crosshairURL') || '');
- if (crosshairUrl) {
- setStorage('crosshairURL', crosshairUrl);
- applyCrosshair(crosshairUrl);
- }
- } else {
- applyCrosshair(null);
- }
- });
- let isLMBCounterEnabled = false;
- let isRMBCounterEnabled = false;
- createSwitch('Enable LMB CPS Counter', function (enabled) {
- isLMBCounterEnabled = enabled;
- });
- createSwitch('Enable RMB CPS Counter', function (enabled) {
- isRMBCounterEnabled = enabled;
- });
- let LMBclickTimes = [];
- let RMBclickTimes = [];
- document.addEventListener('mousedown', function (event) {
- if (event.button === 0 && isLMBCounterEnabled) {
- LMBcountClick();
- } else if (event.button === 2 && isRMBCounterEnabled) {
- RMBcountClick();
- }
- });
- function LMBcountClick() {
- var LMBcurrentTime = new Date().getTime();
- LMBclickTimes.push(LMBcurrentTime);
- LMBupdateCPS();
- if (new Date().getTime() - LMBcurrentTime >= 1000) {
- LMBValue.textContent = '0';
- }
- }
- function RMBcountClick() {
- var RMBcurrentTime = new Date().getTime();
- RMBclickTimes.push(RMBcurrentTime);
- RMBupdateCPS();
- if (new Date().getTime() - RMBcurrentTime >= 1000) {
- RMBValue.textContent = '0';
- }
- }
- function LMBupdateCPS() {
- var currentTime = new Date().getTime();
- var oneSecondAgo = currentTime - 1000;
- var LMBcount = 0;
- for (var i = LMBclickTimes.length - 1; i >= 0; i--) {
- if (LMBclickTimes[i] >= oneSecondAgo) {
- LMBcount++;
- } else {
- break;
- }
- }
- LMBValue.textContent = LMBcount;
- }
- function RMBupdateCPS() {
- var currentTime = new Date().getTime();
- var oneSecondAgo = currentTime - 1000;
- var RMBcount = 0;
- for (var i = RMBclickTimes.length - 1; i >= 0; i--) {
- if (RMBclickTimes[i] >= oneSecondAgo) {
- RMBcount++;
- } else {
- break;
- }
- }
- RMBValue.textContent = RMBcount;
- }
- var cpsButton = document.createElement('div');
- cpsButton.style.position = 'fixed';
- cpsButton.style.top = '10px';
- cpsButton.style.left = '745px';
- cpsButton.style.backgroundColor = 'black';
- cpsButton.style.color = 'white';
- cpsButton.style.padding = '5px';
- cpsButton.style.fontFamily = 'Arial';
- cpsButton.style.fontSize = '20px';
- cpsButton.style.zIndex = '9999';
- cpsButton.textContent = '';
- var LMBValue = document.createElement('span');
- LMBValue.textContent = '0';
- var cpsLabel = document.createElement('span');
- cpsLabel.textContent = ' | ';
- var RMBValue = document.createElement('span');
- RMBValue.textContent = '0';
- cpsButton.appendChild(LMBValue);
- cpsButton.appendChild(cpsLabel);
- cpsButton.appendChild(RMBValue);
- document.body.appendChild(cpsButton);
- function applyCrosshair(url) {
- let crosshair = document.querySelector('.CrossHair');
- if (crosshair) {
- crosshair.textContent = "";
- if (url) {
- crosshair.style.backgroundImage = `url(${url})`;
- crosshair.style.backgroundRepeat = "no-repeat";
- crosshair.style.backgroundSize = "contain";
- crosshair.style.width = "50px";
- crosshair.style.height = "50px";
- } else {
- crosshair.style.backgroundImage = "";
- }
- }
- }
- let savedCrosshair = getStorage('crosshairURL');
- if (savedCrosshair) {
- applyCrosshair(savedCrosshair);
- }
- let reloadContainer = document.createElement('div');
- reloadContainer.style.display = 'flex';
- reloadContainer.style.flexDirection = 'column';
- reloadContainer.style.alignItems = 'center';
- reloadContainer.style.width = '100%';
- reloadContainer.style.marginBottom = '5px';
- let reloadLabel = document.createElement('span');
- reloadLabel.textContent = 'Account Generator';
- reloadLabel.style.flexGrow = '1';
- reloadLabel.style.textAlign = 'center';
- let reloadButtonContainer = document.createElement('label');
- reloadButtonContainer.style.position = 'relative';
- reloadButtonContainer.style.display = 'inline-block';
- reloadButtonContainer.style.width = 'auto';
- let reloadButton = document.createElement('button');
- reloadButton.textContent = 'Account Gen';
- reloadButton.style.backgroundColor = '#4CAF50';
- reloadButton.style.color = 'white';
- reloadButton.style.border = 'none';
- reloadButton.style.padding = '5px 10px';
- reloadButton.style.marginTop = '10px';
- reloadButton.style.cursor = 'pointer';
- reloadButton.style.borderRadius = '5px';
- reloadButton.disabled = true;
- reloadButton.addEventListener('click', function () {
- location.reload();
- var cookies = document.cookie.split(";");
- for (var _i = 0, cookies_1 = cookies; _i < cookies_1.length; _i++) {
- var cookie = cookies_1[_i];
- var eqPos = cookie.indexOf("=");
- var name_1 = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
- document.cookie = name_1 + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/";
- }
- });
- reloadButtonContainer.appendChild(reloadButton);
- reloadContainer.appendChild(reloadLabel);
- reloadContainer.appendChild(reloadButtonContainer);
- content.appendChild(reloadContainer);
- setTimeout(function () {
- reloadButton.disabled = false;
- }, 3000);
- }
- if (document.readyState === 'loading') {
- document.addEventListener('DOMContentLoaded', createMenu);
- } else {
- createMenu();
- }
- })();