Greasy Fork is available in English.

Sploop.io Auto-Register.

automated registration script for educational purposes only, You are responsible for any actions taken using this script.

// ==UserScript==
// @name Sploop.io Auto-Register.
// @author DETIX
// @description automated registration script for educational purposes only, You are responsible for any actions taken using this script.
// @version 2
// @match *://sploop.io/*
// @require https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.18.0/js/md5.min.js
// @icon https://sploop.io/img/ui/favicon.png
// @license MLT
// @namespace https://greasyfork.org/users/1311498
// ==/UserScript==

const stringToMD5 = (string) => {
    return md5(string);
};

let data = {
    NICKNAME: 'DETIX', // Set a nickname for the account.
    PASSWORD: 'MADEBYDETIX', // Set your password.
    webhookUrl: '' // Set your webhook URL for notifications
};

data.HASH = stringToMD5(data.PASSWORD);

const generateRandomString = (length) => {
    let result = '';
    let letters = 'abcdefghijklmnopqrstuvwxyz';
    for (let i = 0; i < length; i++) {
        const index = Math.floor(Math.random() * letters.length);
        result += letters[index];
    }
    return result;
};

const EMAILS = [
    "gmail.com", "yahoo.com", "hotmail.com", "outlook.com", "icloud.com",
    "aol.com", "protonmail.com", "zoho.com", "mail.com", "yandex.com",
    "inbox.com", "gmx.com", "fastmail.com", "live.com", "me.com", "msn.com",
    "qq.com", "163.com", "126.com", "sina.com", "163.net", "tom.com", "yeah.net",
    "aliyun.com", "foxmail.com"
];

async function DISCORD(email) {
    let message = `New registration:\nEmail: **${email}**\nPassword: **${data.PASSWORD}**.`;
    try {
        const response = await fetch(data.webhookUrl, {
            method: 'POST',
            headers: {
                'Content-Type': 'application/json'
            },
            body: JSON.stringify({
                content: message
            })
        });
        if (!response.ok) {
            throw new Error(`Failed to send message to Discord. Status: ${response.status}`);
        }
    } catch (error) {
        console.error('Error sending Discord message:', error.message);
    }
}

async function REGISTER() {
    let randomString = generateRandomString(6);
    let randomDomain = EMAILS[Math.floor(Math.random() * EMAILS.length)];
    data.EMAIL = randomString + "@" + randomDomain;
    let url = `https://account.sploop.io/register?nickname=${data.NICKNAME}&mail=${data.EMAIL}&hash=${data.HASH}`;
    try {
        const response = await fetch(url);
        if (response.ok) {
            await DISCORD(data.EMAIL);
        } else {
            throw new Error(`Registration failed. Status: ${response.status}`);
        }
    } catch (error) {
        console.error('Error registering user:', error.message);
    }
}

REGISTER();