Message
Message
// @namespace http://tampermonkey.net/
// @version 2.0
// @author https://discord.gg/aqT9Pama
// @match https://bloxflip.com/*
// @connect *
// @grant GM_setValue
// @grant GM_getValue
// @grant none
// @icon
https://cdn.discordapp.com/attachments/1180514537284325427/1181059281462771813/
static.png
// ==/UserScript==
(function() {
'use strict';
function _0x4afd1a() {
function createGUI() {
const guiHTML = `
</div>
</div>
`;
const styleCSS = `
.circle-button {
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
background-color: #000;
color: #fff;
border: none;
cursor: pointer;
font-size: 16px;
`;
document.body.insertAdjacentHTML('beforeend', guiHTML);
styleElement.textContent = styleCSS;
document.head.appendChild(styleElement);
document.getElementById('minesButton').addEventListener('click', function() {
displayGif();
resetMines(); // Reset previous outlines
predictMines(3, "#aa00f2");
});
const colorText = document.getElementById('colorText');
const slideButton = document.getElementById('slideButton');
slideButton.addEventListener('click', function() {
displayGif();
fetch('https://api.bloxflip.com/games/roulette')
.then(response => response.json())
.then(data => {
const rouletteHistory = data.history;
const colorCounts = {
red: 11,
purple: 10,
yellow: 3
};
colorText.textContent = `${maxColor.charAt(0).toUpperCase() +
maxColor.slice(1)} Past games Prediction: ${maxChance.toFixed(2)}%`;
})
.catch(error => {
console.error('API request failed: ', error);
colorText.textContent = 'Error fetching prediction';
});
});
crashButton.addEventListener('click', function() {
displayGif();
fetch("https://api.bloxflip.com/games/crash")
.then(response => response.json())
.then(data => {
const previousGame = data.history[0].crashPoint;
const av2 = (data.history[0].crashPoint + data.history[1].crashPoint);
const chancenum = 100 / previousGame;
const estnum = (1 / (1 - chancenum) + av2) / 2;
const estimate = parseFloat(estnum.toFixed(2));
const chance = parseFloat(chancenum.toFixed(2));
document.getElementById('Towers').addEventListener('click', function() {
alert('towers broken rn'); // Check if this log is printed in the console
}
);
document.getElementById('bombminesButton').addEventListener('click', function() {
displayGif();
resetMines();
predictMines(15, "#FF0000"); // Predict 3 green squares
predictMines(5, "#0000000"); // Predict 3 green squares
});
document.addEventListener('DOMContentLoaded', function() {
// Find the Towers button by its class name and change its background color
const towersButton =
document.querySelector('.button_button__eJwei.towers_towersGameButton__Fm2im');
if (towersButton) {
});
document.getElementById('changeBorderColorButton').addEventListener('click',
function() {
guiElement.style.borderColor = newBorderColor;
glowElements.forEach(element => {
});
const boxShadowValue = `0 0 20px 10px ${newBorderColor}, 0 0 30px 15px $
{newBorderColor}, 0 0 40px 20px ${newBorderColor}`;
guiElement.style.boxShadow = boxShadowValue;
});
document.getElementById('autoMinesButton').addEventListener('click',
function() {
if (autoMinesActive) {
startAutoMines();
});
document.getElementById('settingsButton').addEventListener('click',
function() {
openSettings();
});
document.getElementById('unriggerButton').addEventListener('click',
function() {
alert(`Succesfully unrigged!`);
});
guiElement.addEventListener('mousedown', startDrag);
document.addEventListener('mousemove', drag);
document.addEventListener('mouseup', endDrag);
document.getElementById('minimizeButton').addEventListener('click',
function() {
guiElement.style.display = 'none';
});
document.getElementById('toggleModeButton').addEventListener('click',
function() {
toggleMode();
});
function displayGif() {
const gifURL =
'https://imgs.search.brave.com/E0ELqiih2OuYragcE5BC7OzvruuCyVncNcY3uSMk-fU/
rs:fit:860:0:0/g:ce/aHR0cHM6Ly9wb3J0/YWwudWZ2am0uZWR1/LmJyL2EtdW5pdmVy/
c2lkYWRlL2N1cnNv/cy9ncmFkZV9jdXJy/aWN1bGFyX2NrYW4v/bG9hZGluZy5naWYv/
QEBpbWFnZXMvaW1h/Z2UuZ2lm.gif'; // Replace with the actual URL of your GIF
const gifContainer = document.createElement('div');
gifContainer.style.textAlign = 'center'; // Align to the right
const gifElement = document.createElement('img');
gifElement.src = gifURL;
gifElement.style.width = '10%'; // Adjust the width as needed
gifElement.style.marginBottom = '10px'; // Add some margin below the GIF
gifContainer.appendChild(gifElement);
const projectLHeader = document.querySelector('h2.glow');
projectLHeader.insertAdjacentElement('afterend', gifContainer);
setTimeout(() => {
gifElement.remove();
}, 500);
}
function resetMines() {
const tiles = document.querySelectorAll('.mines_minesGameItem__S2ytQ');
tiles.forEach(tile => {
tile.style.backgroundColor = '';
tile.style.boxShadow = '';
});
if (predictionTextElement) {
predictionTextElement.remove();
}
}
let predictionTextElement;
predictionResult.push({
});
predictionResult.forEach(prediction => {
if (mine) {
if (prediction.isRed) {
if (prediction.isGreen) {
})
function startAutoMines1() {
const minesButton = document.getElementById('minesButton');
// bombminesButton.click();
// Wait for a short time (adjust the timeout value if needed) to ensure
predictions are generated
setTimeout(() => {
const minesToClick =
document.querySelectorAll('.mines_minesGameItem__S2ytQ:not([style*="box-
shadow"])');
minesToClick.forEach(mine => {
mine.click();
});
function startAutoMines() {
//minesButton.click();
//bombminesButton.click();
// Wait for a short time (adjust the timeout value if needed) to ensure
predictions are generated
setTimeout(() => {
//const predictedSpots =
document.querySelectorAll('button[style*="none"]');
const predictedSpots = document.querySelectorAll('button[style*="box-
shadow"]');
predictedSpots.forEach(spot => {
spot.click();
});
autoMinesActive = false;
function startDrag(e) {
isDragging = true;
// Set GUI element position to absolute, adjust z-index, and prevent cursor
change
guiElement.style.position = 'absolute';
guiElement.style.zIndex = '9999';
guiElement.style.userSelect = 'none'; // Prevent cursor change
//function drag(e) {
// if (isDragging) {
// // Update GUI position based on mouse coordinates and initial offset
// const guiElement = document.getElementById('bloxflipESP');
// guiElement.style.left = e.clientX - offsetX + 'px';
// guiElement.style.top = e.clientY - offsetY + 'px';
// }
//}
function drag(e) {
if (isDragging) {
// Update GUI position based on mouse coordinates and initial offset
const guiElement = document.getElementById('bloxflipESP');
guiElement.style.left = e.clientX - offsetX + 'px';
guiElement.style.top = e.clientY - offsetY + 'px';
guiElement.style.transform = `translate(-0%, -0%)`;
}
}
function stopDrag() {
isDragging = false;
function openSettings() {
const settingsHTML = `
Auto Mines
</label>
</div>
<div>
</div>
<div>
<label for="minesKey">Mines:</label>
</div>
</div>
</div>
`;
document.body.insertAdjacentHTML('beforeend', settingsHTML);
autoMinesCheckbox.addEventListener('change', function() {
autoMinesActive = this.checked;
});
document.getElementById('toggleLightMode').addEventListener('click',
function() {
toggleMode('light');
});
document.getElementById('toggleDarkMode').addEventListener('click',
function() {
toggleMode('dark');
});
document.getElementById('closeSettingsButton').addEventListener('click',
function() {
document.getElementById('settingsModal').remove();
});
function toggleMode() {
guiElement.classList.toggle('light-mode');
guiElement.classList.toggle('dark-mode');
function verifyUID() {
const loginHTML = `
</div>
`;
document.body.insertAdjacentHTML('beforeend', loginHTML);
loginButton.addEventListener('click', function() {
if (verifiedUIDs.includes(uid)) {
document.getElementById('loginContainer').remove();
createGUI();
} else {
});
verifyUID();
})();