Files
manifest.json
popup.css
popup.html
popup.js
Code
4 367
popup.js
const wordlist = {
long: [
"THE LOBBY JUST GOT INTERESTING, LETS SEE WHO CAN KEEP UP",
"GOOD TRY, BUT IM STILL WAITING FOR A REAL CHALLENGE",
"KEEP THE ENERGY UP, WE ARE ONLY GETTING STARTED",
"THAT PLAY WAS CLEAN, RUN IT BACK AND LETS GO AGAIN",
"IM HERE FOR THE COMPETITION, BRING YOUR BEST ROUND",
"THE SCOREBOARD IS TALKING, BUT THE MATCH ISNT OVER YET",
"LOCK IN, THIS NEXT ROUND IS WHERE IT GETS SERIOUS",
"RESPECT THE EFFORT, NOW LETS MAKE THE COMEBACK HAPPEN",
"THE CHAT IS MOVING FAST BECAUSE THIS MATCH IS HEATING UP",
"YOU BROUGHT THE CONFIDENCE, NOW BRING THE CLUTCH PLAY",
"EVERY ROUND IS A NEW CHANCE TO TURN IT AROUND",
"THAT WAS A SOLID MOVE, I CANT EVEN HATE ON IT",
"NO EXCUSES, JUST RUN THE NEXT ONE AND HAVE FUN",
"IM NOT DONE YET, THE COMEBACK ARC STARTS RIGHT NOW",
"WE CAN TALK AFTER THE ROUND, RIGHT NOW ITS GAME TIME",
"THE VIBES ARE HIGH AND THE COMPETITION IS EVEN HIGHER",
"IF YOU WANT THE WIN, YOU HAVE TO EARN IT THIS ROUND",
"THAT WAS CLOSE, LETS SETTLE IT WITH ONE MORE MATCH",
"I SEE THE STRATEGY, BUT IVE GOT A FEW PLAYS TOO",
"KEEP IT RESPECTFUL AND LET THE SKILL SPEAK FOR ITSELF"
],
short: [
"GG SO FAR",
"LOCK IN",
"RUN IT BACK",
"THAT WAS CLEAN",
"NICE PLAY",
"IM READY",
"WE GO AGAIN",
"BIG ROUND",
"CLUTCH TIME",
"GOOD ENERGY",
"SCOREBOARD CHECK",
"KEEP COOKING",
"THAT WAS CLOSE",
"GAME TIME",
"RESPECT",
"NEXT ROUND",
"LETS GO",
"STAY LOCKED IN",
"COMEBACK TIME",
"TOO CLOSE",
"SOLID TRY",
"FULL FOCUS",
"THE VIBES ARE UP",
"WHO WANTS THE REMATCH?",
"MAKE IT COUNT",
"THIS IS A GOOD ONE",
"WE LOVE A CLOSE GAME",
"BRING THE ENERGY",
"THATS A HIGHLIGHT",
"PLAY SMART"
]
};
const generateBtn = document.getElementById('generateBtn');
const copyBtn = document.getElementById('copyBtn');
const outputArea = document.getElementById('output');
const lineCountInput = document.getElementById('lineCount');
const mixModeCheckbox = document.getElementById('mixMode');
const statsText = document.getElementById('statsText');
function getRandomItem(array) {
return array[Math.floor(Math.random() * array.length)];
}
function generateWordlist() {
const requestedLineCount = Number.parseInt(lineCountInput.value, 10);
const lineCount = Math.min(100, Math.max(5, Number.isNaN(requestedLineCount) ? 20 : requestedLineCount));
const mixMode = mixModeCheckbox.checked;
const allLines = [...wordlist.long, ...wordlist.short];
const lines = [];
lineCountInput.value = lineCount;
for (let index = 0; index < lineCount; index += 1) {
const useLongLine = mixMode && Math.random() > 0.7;
lines.push(getRandomItem(useLongLine ? wordlist.long : (mixMode ? wordlist.short : allLines)));
}
const generated = lines.join('\n');
outputArea.value = generated;
statsText.textContent = `Generated ${lineCount} lines • ${generated.length} characters`;
}
async function copyToClipboard() {
const text = outputArea.value;
if (!text) {
statsText.textContent = 'Nothing to copy! Generate a wordlist first.';
return;
}
try {
await navigator.clipboard.writeText(text);
copyBtn.textContent = 'COPIED!';
copyBtn.classList.add('copied');
statsText.textContent = 'Copied to clipboard!';
setTimeout(() => {
copyBtn.textContent = 'COPY';
copyBtn.classList.remove('copied');
statsText.textContent = `Generated ${text.split('\n').length} lines • ${text.length} characters`;
}, 2000);
} catch (error) {
console.error('Failed to copy to clipboard:', error);
statsText.textContent = `Failed to copy: ${error.message}`;
}
}
generateBtn.addEventListener('click', generateWordlist);
copyBtn.addEventListener('click', copyToClipboard);
lineCountInput.addEventListener('keydown', (event) => {
if (event.key === 'Enter') {
generateWordlist();
}
});