Message
Message
(function() {
'use strict';
let intervalId;
function autoJoinRain() {
let joinButton =
Array.from(document.getElementsByTagName('button')).find(button =>
button.textContent.includes('Join For Free'));
if (joinButton) {
joinButton.click();
console.log("Joined rain successfully!");
} else {
console.log("Join For Free button not found, retrying...");
}
}
function createUI() {
let controls = document.createElement('div');
controls.id = 'controls';
controls.style.position = 'fixed';
controls.style.top = '50%';
controls.style.left = '50%';
controls.style.transform = 'translate(-50%, -50%)';
controls.style.background = '#333';
controls.style.color = '#fff';
controls.style.border = '1px solid #444';
controls.style.padding = '20px';
controls.style.borderRadius = '10px';
controls.style.boxShadow = 'none'; // Remove the shadow
controls.style.cursor = 'move';
controls.style.zIndex = '9999'; // Ensure the UI is on top
controls.style.overflow = 'hidden'; // Ensure overflow doesn't interfere
with the glow
controls.innerHTML = `
<div style="text-align: center; font-size: 18px; margin-bottom:
10px;">McDuckify's Rain Joiner</div>
<button id="start" style="background: #007bff; color: #fff; border:
none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin: 5px;">Start
Auto Join</button>
<button id="stop" style="background: #007bff; color: #fff; border:
none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin: 5px;">Stop
Auto Join</button>
`;
document.body.appendChild(controls);
document.addEventListener('mouseup', () => {
isDragging = false;
controls.style.cursor = 'move';
});
document.getElementById('start').addEventListener('click', () => {
if (!intervalId) {
intervalId = setInterval(autoJoinRain, 1000);
document.getElementById('start').style.background = '#003366'; //
Dark blue when activated
console.log("Auto join started.");
}
});
document.getElementById('stop').addEventListener('click', () => {
if (intervalId) {
clearInterval(intervalId);
intervalId = null;
document.getElementById('stop').style.background = '#003366'; //
Dark blue when activated
document.getElementById('start').style.background = '#007bff'; //
Reset start button color to normal blue
console.log("Auto join stopped.");
}
});
createUI();
})();