Unlimited Gmail Alias Generator
Enter your Gmail address to generate unlimited aliases.
Generating aliases for ${username}@${domain}... This may take a while.
`; // Generate dot variations const dotVariations = await generateDotVariations(username); // Display results in chunks to prevent crashing displayResults(dotVariations, domain); } function generateDotVariations(username) { return new Promise((resolve) => { const results = []; const length = username.length; function helper(current, index) { if (index === length) { results.push(current); return; } helper(current + username[index], index + 1); // Without dot if (index > 0) { helper(current + '.' + username[index], index + 1); // With dot } } helper('', 0); resolve(results); }); } function displayResults(variations, domain) { const outputDiv = document.getElementById('output'); const chunkSize = 1000; // Display 1000 results at a time let totalDisplayed = 0; function processChunk(startIndex) { const endIndex = Math.min(startIndex + chunkSize, variations.length); for (let i = startIndex; i < endIndex; i++) { const p = document.createElement('p'); p.textContent = `${variations[i]}@${domain}`; outputDiv.appendChild(p); } totalDisplayed += endIndex - startIndex; if (endIndex < variations.length) { setTimeout(() => processChunk(endIndex), 50); // Delay to avoid freezing } else { const totalP = document.createElement('p'); totalP.innerHTML = `Total Aliases: ${variations.length}`; outputDiv.appendChild(totalP); } } processChunk(0); }