// ==UserScript==
// @name graduated version of ᏞϴᎡᎠ亗ᴢᴏᴅɪᴀᴄ CLIENT 3.0
// @namespace http://tampermonkey.net/
// @version 1.4
// @description ITS A BLOXD IO CLIENT
// @author Der_Ickinger
// @match https://bloxd.io/
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABjFBMVEXAAADuthPcfHzaY2MAAADEAADGAAB9AACHAABiAABRAADMzMyQSknFAADgZmbyuRMzLtz3vRRhfvQs1irjgIDkaGjRX1/fqxHU1NTEWVn6vxSpAAC0AAC7AADOdHTZenqvhg6aAACTAADnsRI+AABFAADImRCkAAC9a2tuAAC4jQ+BAADirRI1MOaLPz+tTk6sYWE2AADToREYAACeSEipTU2IRkWFZgtfAAAjAABEAAAtGBifeg0qAAB7XwoNAABRaMorJ7lbKip3NjalpaUeAACTcAxTQQcrJQQuAAATEVQaF29FHx93Q0NrMDCbWFg/HBxlOTkyMzOSkpIZHANiTAhENwYACQETWhJGW7AcFQAAAA0xLNNbd+YmIqIu4iwYcxdJKip8fX24uLhISUkeJiZiY2M2KwQABwEdkBwagRkzQoAAGwYpxCYlHAAAACQhHYwlryILNgoJFzkQDDwmFAArNmkWE14KUhAAKgkgKVA9TpgQRQ4QFSkhoB8mtiQMCzQXABI1GiM7IyO+dScAAAAaHklEQVR4nO2di1/TyBPAKUzC65oabApFCkp5vwoUBCxQryCI8ioInqIih6Kev/O8O8+7n/fy8Y//ZjdNskl2k/RB/cGH+SgopNv97szOzM5u0pqaC7mQMyHS+ZSwZAJ2159PaTAQ5Qk4n9IrG4RNX7srpyQ2wt7G8ya9DsIG+bxJA0CTjdD0O+dEpAvCMy8XhGdfLgjPvlwQnn25IDz7ckFYza6czjtXjdC3/+HBK6fy1tUiTMA174albqsfFZUqEcqDcMO7//LEQ+g4jfeuEmECbkOH5xUdMHT7VJRYHUJUYQgGwx5XhOshctVnEEqTShAmfDuWgJn2GfAilLOLqnrvNJRYAUJ54pZPx1CF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+zT8pRFE2Lx+NTzDppGv+j2TfAlRRtlTSZru+vkVE6urFjzyw+jIQTgbtZDiEpqBvv2rb8DJ1Dhz7qkpzQATGv4jxMw8bj/C36mWd6o23HJ0TjZLsDnn9/zPA1PwdOrnEKhCQV3DHflXZorv5aIpEgQ17o0bLP0Ua3xPXpTZtsO949OTnZXcZ/MXyY9gf9GJ1yCSmi9d5tzbsn+rMen3/f3Gb2ZrqoXWBtE2w0RJptgrlM8M8GLJfQrkXan+Pd3d1jplPobPwOitsAxywV8oUAVu3zgN2IOqXtv7tAnyMZWIPPKgtYNiE9LnAs7FTb8Q40XoGAlqrEMtBkZGUC2QH3aup0CT0RiQJJoGyCXDymaYroYJRChdxQ2C83wPNlEWMbetHiNFgJQgwac8DtE1FgL3Xrega3nRubTsUwKCKrVoBCQdWl4lNjY5sZyKKPlDuY3MXZIBTjRStGWEN09L2rSyR6ZI1iTjhxrXuwaY462i/b25nN7SUqGfy38bDduZ7BGj2adqdJfHe3uAs9nEptFQhpjvqs2e7kSQZQz6zPJSkso732X6tv6m3qvdF7g0pvb299/XD/tQ4CZpa76Mrk+W6znRG9ctDP6ao8IS3PMIG6eRdTrgaJV58loDYJhyXJXamQ+7EvJ8uWY25bfh442bY3VRnCGinRq1tWmx73ewI+qVncoJyoR9M92aX5TFvzCSx0lKDByhESb5LFXGYZtQdpTFDL46MSlvsH12hOismfczUVWCpHiCtwko9C73CHXNJgc5uUaZILvJJU0DYqR0gsq6Y7IQd4AnVxjUrdg77PQ/Z4fSUJSXtlvVrUKKcSFPzFFSb8/5MLwrMvF4RnXy4Iz75cEJ59uSA8+3JBePblgvDsywXh2ZcLwrMvF4RnXy4Iz764CeXzJjbCXoDexvMmvQ4dnks5/4Tm/TBSQ/35FOu2RCks0R3ZcydV8NkXciEVkP8BXgFMi6NT9egAAAAASUVORK5CYII=
// @license MIT
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Create the CPS counter elements
var leftCpsCounter = document.createElement('div');
leftCpsCounter.style.position = 'fixed';
leftCpsCounter.style.bottom = '10px';
leftCpsCounter.style.right = '10px';
leftCpsCounter.style.padding = '5px';
leftCpsCounter.style.background = 'transperent';
leftCpsCounter.style.color = '#fff';
leftCpsCounter.style.fontFamily = 'Arial, sans-serif';
leftCpsCounter.style.fontSize = '12px';
leftCpsCounter.style.zIndex = '9999';
var rightCpsCounter = document.createElement('div');
rightCpsCounter.style.position = 'fixed';
rightCpsCounter.style.bottom = '30px';
rightCpsCounter.style.right = '10px';
rightCpsCounter.style.padding = '5px';
rightCpsCounter.style.background = 'transperent';
rightCpsCounter.style.color = '#fff';
rightCpsCounter.style.fontFamily = 'Arial, sans-serif';
rightCpsCounter.style.fontSize = '12px';
rightCpsCounter.style.zIndex = '9999';
// Append the CPS counters to the body
document.body.appendChild(leftCpsCounter);
document.body.appendChild(rightCpsCounter);
// Variables to track click counts
var leftClicks = 0;
var rightClicks = 0;
// Function to update the CPS counters
function updateCPS() {
leftCpsCounter.textContent = 'Left CPS: ' + leftClicks;
rightCpsCounter.textContent = 'Right CPS: ' + rightClicks;
leftClicks = 0;
rightClicks = 0;
}
// Event listener for left click
document.addEventListener('mousedown', function(event) {
if (event.button === 0) {
leftClicks++;
} else if (event.button === 2) {
rightClicks++;
}
});
// Start updating the CPS counters every second
setInterval(updateCPS, 1000);
})();
(function() {
'use strict';
setInterval(function() {
const hotbarslots = document.querySelectorAll(".item");
const selectedslot = document.querySelectorAll(".SelectedItem");
if (hotbarslots) {
hotbarslots.forEach(function(hotbar) {
hotbar.style.borderColor = "#000000";
hotbar.style.borderRadius = "5px";
hotbar.style.backgroundColor = "transparent";
hotbar.style.outline = "transparent"
});
}
if (selectedslot) {
selectedslot.forEach(function(slot) {
slot.style.backgroundColor = "transparent";
slot.style.borderColor = "#659400";
slot.style.outline = "transparent";
});
}
}, 1);
})();
setInterval(function() {
const crosshair = document.querySelector(".CrossHair");
if (crosshair) {
crosshair.textContent = "✕";
crosshair.style.width = "20px";
crosshair.style.height = "20px";
}
}, 1000);
(function() {
'use strict';
// Erstellen Sie das Anzeigeelement für 'S'
var displayElementS1 = createDisplayElement('S', 10, 10);
// Erstellen Sie das Anzeigeelement für 'U'
var displayElementU = createDisplayElement('U', 60, 10);
// Erstellen Sie das Anzeigeelement für ein weiteres 'S' unterhalb von 'U'
var displayElementS2 = createDisplayElement('S', 110, 10);
// Überwachen Sie Tastenanschläge
document.addEventListener('keydown', handleKeyDown);
document.addEventListener('keyup', handleKeyUp);
// Funktion zum Generieren von Regenbogenfarben
function generateRainbowColor() {
var frequency = 0.1;
var red = Math.sin(frequency * Date.now() + 0) * 127 + 128;
var green = Math.sin(frequency * Date.now() + 2) * 127 + 128;
var blue = Math.sin(frequency * Date.now() + 4) * 127 + 128;
return `rgb(${Math.round(red)}, ${Math.round(green)}, ${Math.round(blue)})`;
}
// Hilfsfunktion zur Erstellung von Anzeigeelementen
function createDisplayElement(letter, top, right) {
var displayElement = document.createElement('div');
displayElement.style.position = 'fixed';
displayElement.style.top = top + 'px';
displayElement.style.right = right + 'px';
displayElement.style.padding = '10px';
displayElement.style.borderRadius = '5px';
displayElement.style.color = 'white';
displayElement.style.background = 'rgba(128, 128, 128, 0.5)'; // Transparent grau
displayElement.style.zIndex = '9999';
displayElement.innerHTML = letter;
document.body.appendChild(displayElement);
return displayElement;
}
// Behandeln Sie das Keydown-Ereignis
function handleKeyDown(e) {
if (e.key.toLowerCase() === 's') {
// Ändern Sie die Hintergrundfarbe von beiden 'S'-Elementen in Regenbogenfarben
displayElementS1.style.background = generateRainbowColor();
displayElementS2.style.background = generateRainbowColor();
} else if (e.key.toLowerCase() === 'u') {
// Ändern Sie die Hintergrundfarbe von 'U' in Regenbogenfarben
displayElementU.style.background = generateRainbowColor();
}
}
// Behandeln Sie das Keyup-Ereignis
function handleKeyUp(e) {
if (e.key.toLowerCase() === 's') {
// Setzen Sie die Hintergrundfarbe von beiden 'S'-Elementen auf transparent grau zurück
displayElementS1.style.background = 'rgba(128, 128, 128, 0.5)';
displayElementS2.style.background = 'rgba(128, 128, 128, 0.5)';
} else if (e.key.toLowerCase() === 'u') {
// Setzen Sie die Hintergrundfarbe von 'U' auf transparent grau zurück
displayElementU.style.background = 'rgba(128, 128, 128, 0.5)';
}
}
})();
(function() {
'use strict';
// Erstellen Sie das Anzeigeelement für 'S'
var displayElementS = createDisplayElement('S', 10, 10);
// Erstellen Sie das Anzeigeelement für 'U'
var displayElementU = createDisplayElement('U', 60, 10);
// Überwachen Sie Tastenanschläge
document.addEventListener('keydown', handleKeyDown);
document.addEventListener('keyup', handleKeyUp);
// Funktion zum Generieren von Regenbogenfarben
function generateRainbowColor() {
var frequency = 0.1;
var red = Math.sin(frequency * Date.now() + 0) * 127 + 128;
var green = Math.sin(frequency * Date.now() + 2) * 127 + 128;
var blue = Math.sin(frequency * Date.now() + 4) * 127 + 128;
return `rgb(${Math.round(red)}, ${Math.round(green)}, ${Math.round(blue)})`;
}
// Hilfsfunktion zur Erstellung von Anzeigeelementen
function createDisplayElement(letter, top, right) {
var displayElement = document.createElement('div');
displayElement.style.position = 'fixed';
displayElement.style.top = top + 'px';
displayElement.style.right = right + 'px';
displayElement.style.padding = '10px';
displayElement.style.borderRadius = '5px';
displayElement.style.color = 'white';
displayElement.style.background = 'rgba(128, 128, 128, 0.5)'; // Transparent grau
displayElement.style.zIndex = '9999';
displayElement.innerHTML = letter;
document.body.appendChild(displayElement);
return displayElement;
}
// Behandeln Sie das Keydown-Ereignis
function handleKeyDown(e) {
if (e.key.toLowerCase() === 's') {
// Ändern Sie die Hintergrundfarbe von 'S' in Regenbogenfarben
displayElementS.style.background = generateRainbowColor();
} else if (e.key.toLowerCase() === 'u') {
// Ändern Sie die Hintergrundfarbe von 'U' in Regenbogenfarben
displayElementU.style.background = generateRainbowColor();
}
}
// Behandeln Sie das Keyup-Ereignis
function handleKeyUp(e) {
if (e.key.toLowerCase() === 's') {
// Setzen Sie die Hintergrundfarbe von 'S' auf transparent grau zurück
displayElementS.style.background = 'rgba(128, 128, 128, 0.5)';
} else if (e.key.toLowerCase() === 'u') {
// Setzen Sie die Hintergrundfarbe von 'U' auf transparent grau zurück
displayElementU.style.background = 'rgba(128, 128, 128, 0.5)';
}
}
})();
(function() {
'use strict';
// Erstellen Sie das Anzeigeelement für 'S'
var displayElement = document.createElement('div');
displayElement.style.position = 'fixed';
displayElement.style.top = '10px';
displayElement.style.right = '10px';
displayElement.style.padding = '10px';
displayElement.style.borderRadius = '5px';
displayElement.style.color = 'white';
displayElement.style.background = 'rgba(128, 128, 128, 0.5)'; // Transparent grau
displayElement.style.zIndex = '9999';
displayElement.innerHTML = 'S';
document.body.appendChild(displayElement);
// Überwachen Sie Tastenanschläge
document.addEventListener('keydown', handleKeyDown);
document.addEventListener('keyup', handleKeyUp);
// Fügen Sie benutzerdefinierte Styles hinzu
GM_addStyle(`
body {
margin-right: 30px; /* Platz für das Anzeigeelement */
}
`);
// Funktion zum Generieren von Regenbogenfarben
function generateRainbowColor() {
var frequency = 0.1;
var red = Math.sin(frequency * Date.now() + 0) * 127 + 128;
var green = Math.sin(frequency * Date.now() + 2) * 127 + 128;
var blue = Math.sin(frequency * Date.now() + 4) * 127 + 128;
return `rgb(${Math.round(red)}, ${Math.round(green)}, ${Math.round(blue)})`;
}
// Behandeln Sie das Keydown-Ereignis
function handleKeyDown(e) {
if (e.key.toLowerCase() === 's') {
// Ändern Sie die Hintergrundfarbe in Regenbogenfarben
displayElement.style.background = generateRainbowColor();
}
}
// Behandeln Sie das Keyup-Ereignis
function handleKeyUp(e) {
if (e.key.toLowerCase() === 's') {
// Setzen Sie die Hintergrundfarbe auf transparent grau zurück
displayElement.style.background = 'rgba(128, 128, 128, 0.5)';
}
}
})();