Discussions » Creation Requests

set click multiplyer for any website (you need to press f12 and enter this in the console or you can use chrome extensions, it's your option but i recommend doing it in console cause it's easier)

§
Posted: 04 Oktober 2024

// Create an input box and button to set the click multiplier
const inputBox = document.createElement('input');
inputBox.type = 'number';
inputBox.placeholder = 'Enter click multiplier';
inputBox.style.position = 'fixed';
inputBox.style.top = '10px';
inputBox.style.left = '10px';
inputBox.style.zIndex = '9999';
inputBox.style.padding = '5px';
inputBox.style.fontSize = '16px';

const setButton = document.createElement('button');
setButton.innerText = 'Set Multiplier';
setButton.style.position = 'fixed';
setButton.style.top = '10px';
setButton.style.left = '200px';
setButton.style.zIndex = '9999';
setButton.style.padding = '5px';
setButton.style.fontSize = '16px';

// Add the input box and button to the document
document.body.appendChild(inputBox);
document.body.appendChild(setButton);

let clickMultiplier = 1; // Default click multiplier

// Function to set the multiplier from the input box
setButton.addEventListener('click', function() {
let multiplier = parseInt(inputBox.value); // Get the value from the input box
if (!isNaN(multiplier) && multiplier > 0) {
clickMultiplier = multiplier; // Set the click multiplier
alert('Click multiplier set to: ' + clickMultiplier);
} else {
alert('Please enter a valid number greater than 0'); // Error handling
}
});

// Function to multiply clicks
function multiplyClicks(event) {
if (clickMultiplier > 1) {
for (let i = 1; i < clickMultiplier; i++) {
event.target.click(); // Trigger additional clicks
}
}
}

// Apply the click multiplier to all clickable elements
document.addEventListener('click', function(event) {
// Avoid triggering the multiplication when clicking the input or button
if (event.target !== inputBox && event.target !== setButton) {
multiplyClicks(event);
}
}, true);

NotYouMod
§
Posted: 04 Oktober 2024
Edited: 04 Oktober 2024

You can post new script if you visit the link in "Control Panel" in your user page, or if you visit this link.

Post reply

Sign in to post a reply.