>>20436if multiple people use this script on
>>>/weab/ then we can wipe the catty successfully despite the weab bumping the threads to safe them
(function() {
// Array of random image URLs hosted online
const imageUrls = [
'
https://files.catbox.moe/va5vgm.png' // Add more image URLs here
];
// Helper function to get a random item from an array
function getRandomItem(arr) {
return arr[Math.floor(Math.random() * arr.length)];
}
// Function to generate a similar but randomized string to "frogwebsite"
function generateRandomSimilarString(baseString = "frogwebsite") {
const characters = 'abcdefghijklmnopqrstuvwxyz';
const baseArray = baseString.split('');
const newArray = […baseArray];
// Add two random letters
for (let i = 0; i < 2; i++) {
const randomChar = characters.charAt(Math.floor(Math.random() * characters.length));
newArray.splice(Math.floor(Math.random() * newArray.length), 0, randomChar);
}
// Remove two letters
for (let i = 0; i < 2; i++) {
newArray.splice(Math.floor(Math.random() * newArray.length), 1);
}
return newArray.join('');
}
// Function to simulate a file drop on the dropzone
async function simulateFileDrop() {
const randomImageUrl = getRandomItem(imageUrls);
const imageName = randomImageUrl.split('/').pop(); // Extract the file name from the URL
// Fetch the image data
const response = await fetch(randomImageUrl);
if (!response.ok) {
console.error('Failed to fetch image:', randomImageUrl);
return;
}
const blob = await response.blob();
// Create a File object with the correct name and type
const file = new File([blob], imageName, { type: blob.type });
// Create a DataTransfer object and add the file to it
const dataTransfer = new DataTransfer();
dataTransfer.items.add(file);
// Create a drop event
const dropEvent = new DragEvent('drop', {
dataTransfer: dataTransfer,
bubbles: true,
cancelable: true
});
// Find the dropzone element and dispatch the drop event
const dropzone = document.querySelector('.dropzone');
if (dropzone) {
dropzone.dispatchEvent(dropEvent);
console.log('File dropped successfully.');
} else {
console.error('Dropzone element not found.');
}
}
// Function to populate the form fields automatically
function populateForm() {
// Find the text area and set random similar text
const textArea = document.querySelector('textarea[name="body"]');
if (textArea) {
textArea.value = generateRandomSimilarString(); // Generate similar string
}
// Simulate setting the image file
simulateFileDrop();
// Click the submit button after 1 second
setTimeout(() => {
const submitButton = document.querySelector('input[name="post"]');
if (submitButton) {
submitButton.click();
} else {
console.error('Submit button not found.');
}
}, 4000); // 1 second delay
}
// Set up a loop to repeat the process every 10 seconds
setInterval(populateForm, 8000);
})();
put this in ur user js and go to /weab/