Skip to content

Instantly share code, notes, and snippets.

@imsks
Last active October 21, 2026 15:57
Show Gist options
  • Select an option

  • Save imsks/ab8d12a847b81ba4c635dedade5a3d4a to your computer and use it in GitHub Desktop.

Select an option

Save imsks/ab8d12a847b81ba4c635dedade5a3d4a to your computer and use it in GitHub Desktop.
Auto-apply on Wellfound
(async () => {
const delay = (ms) => new Promise((res) => setTimeout(res, ms));
const waitForElement = async (selector, timeout = 5000) => {
const start = Date.now();
while (Date.now() - start < timeout) {
const el = document.querySelector(selector);
if (el) return el;
await delay(100);
}
return null;
};
const applicationText = `Hey there,
I'm Sachin, a Full-Stack Product Engineer with an entrepreneurial mindset, specializing in building end-to-end products for the past four years.
Founded 3 startups since college (Ed-tech, SaaS, and Food-tech) and gained hands-on experience in 5 startups as an intern and full-time engineer, working with React, Node.js, Next.js, Django, Flask, React Native, and Flutter.
1. 4 years of Full-stack Web Engineering Experience in React, Node.js, Next.js, Flask, FastAPI.
2. 2 years of mobile app development in Flutter and 6 months in React Native.
3. Built 10+ tech products from ideation to productionβ€”handling everything from UX/UI design to deployment, marketing, and sales.
4. Worked with Web3 technologies (Solidity, Polygon) and developed 5+ DApps.
Tech stack:
β€’ Frontend: React.js, Redux, Next.js, React Native, Flutter
β€’ Backend: Express.js, Node.js, Django, Flask, FastAPI, Socket.io
β€’ Databases: MongoDB, PostgreSQL, MySQL, Firebase Firestore, ElasticSearch
β€’ Cloud: GCP, AWS, Firebase, Heroku, DigitalOcean, Vercel, Netlify
β€’ DevOps: Docker, Docker Swarm
β€’ UI/UX Design: Figma, Framer, Invision, Adobe XD
β€’ Extras: Web Scraping, Content Creation
πŸ”— Links to trust me:
GitHub: https://github.com/imsks
LinkedIn: https://www.linkedin.com/in/imsks
ProductHunt: https://www.producthunt.com/@imsks
Instagram: https://www.instagram.com/theboringeducation
Hope this fits into the role. Looking forward to hearing from you!
Best,
Sachin`;
let appliedCount = 0;
let skippedCount = 0;
let scrollCount = 0;
let processedButtons = new Set();
console.log(`%cπŸš€ Starting smart auto-apply on Wellfound...`, 'color: green; font-weight: bold;');
const handleRelocationQuestion = async () => {
try {
const firstRadio = document.querySelector(
'input[name="qualification.location.action"]'
)
if (firstRadio) {
firstRadio.click()
console.log("%cπŸ“ Selected relocation option", "color: orange")
}
// Targeting the dropdown specifically by ID
const dropdownContainer = document.querySelector(
"#form-input--qualification.location.locationId .select__control"
)
if (dropdownContainer) {
dropdownContainer.click()
console.log("%cπŸ”½ Opened location dropdown", "color: orange")
await delay(500)
const firstOption = document.querySelector(
".select__menu-list div"
)
if (firstOption) {
firstOption.click()
console.log(
"%c🌍 Selected first location in dropdown",
"color: orange"
)
}
await delay(2000)
return true
} else {
console.log("%c⚠️ Dropdown not found", "color: gray")
}
} catch (err) {
console.log(
"%c❌ Error while handling relocation question",
"color: red",
err
)
}
return false
}
const handleCustomQuestions = () => {
const allGroups = document.querySelectorAll(
'[data-test^="RadioGroup-customQuestionAnswers"]'
)
allGroups.forEach((group) => {
const options = group.querySelectorAll('input[type="radio"]')
if (options.length === 3) {
options[1].click() // middle
console.log(
"%c🎯 Selected Intermediate for 3-option question",
"color: dodgerblue"
)
} else if (options.length === 2) {
options[0].click() // first
console.log(
"%c🎯 Selected Beginner for 2-option question",
"color: dodgerblue"
)
} else {
console.log(
"%c⚠️ Unexpected number of options: " + options.length,
"color: gray"
)
}
})
}
const processBatch = async () => {
let buttons = [...document.querySelectorAll('button[data-test="LearnMoreButton"]')];
buttons = buttons.filter(btn => !processedButtons.has(btn));
if (buttons.length === 0) return false;
for (let i = 0; i < buttons.length; i++) {
const learnMoreBtn = buttons[i];
processedButtons.add(learnMoreBtn);
learnMoreBtn.scrollIntoView({ behavior: "smooth", block: "center" });
await delay(300);
learnMoreBtn.click();
console.log(`%cπŸ” [${appliedCount + skippedCount + 1}] Opened job modal...`, 'color: blue');
const applyBtn = await waitForElement('button[data-test="JobDescriptionSlideIn--SubmitButton"]');
if (!applyBtn) {
console.log('%c❌ Modal failed to load', 'color: red');
skippedCount++;
continue;
}
// If apply button is disabled, skip fast
if (applyBtn.disabled) {
// Step 1: Handle relocation questionnaire if visible
const isFormFilled = await handleRelocationQuestion()
if (isFormFilled) {
console.log('%cβœ… Relocation questionnaire filled', 'color: green');
} else {
console.log('%c⚠️ Relocation questionnaire not filled', 'color: orange');
console.log("%c⏭️ Apply button is disabled β€” skipping", "color: gray")
}
const closeBtn = await waitForElement('button[data-test="closeButton"]');
if (closeBtn) closeBtn.click();
skippedCount++;
await delay(500);
continue;
}
handleCustomQuestions()
// Step 2: Fill application text
const textarea = document.querySelector('textarea:not([disabled])');
if (textarea) {
textarea.value = applicationText;
textarea.dispatchEvent(new Event('input', { bubbles: true }));
console.log(`%cπŸ“ Autofilled application`, 'color: purple');
}
await delay(1000)
// Step 3: Click Apply
applyBtn.click();
await delay(3000)
appliedCount++;
console.log('%cβœ… Applied successfully', 'color: teal');
// Step 4: Close modal
const closeBtn = await waitForElement('button[data-test="closeButton"]');
if (closeBtn) {
closeBtn.click();
console.log('%c❎ Modal closed', 'color: crimson');
}
await delay(1000);
}
return true;
};
// Infinite scroll loop
const maxScrolls = 10;
while (scrollCount < maxScrolls) {
const found = await processBatch();
if (!found) {
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
console.log(`%cπŸ“œ Scrolling to load more jobs...`, 'color: darkcyan');
scrollCount++;
await delay(2000);
} else {
scrollCount = 0; // reset if found new jobs
}
}
// Summary
console.log('%cπŸŽ‰ All done! Smart auto-apply finished.', 'color: limegreen; font-size: 16px; font-weight: bold;');
console.log(`%cπŸ“Œ Jobs Applied: ${appliedCount}`, 'color: #4CAF50; font-weight: bold;');
console.log(`%cπŸ“Œ Jobs Skipped: ${skippedCount}`, 'color: #FF9800; font-weight: bold;');
})();

πŸ‘‹ Hey there, This Gist is Developed to help you Automate the Applying Process at Wellfound.

How to use:

  1. Open the Wellfound Job((https://wellfound.com/jobs)) page
  2. Press F12 or Right-click > Inspect and go to the Console tab.
  3. Paste the script above and hit Enter.

IMPORTANT - Modify the applicationText variable with your Details as Wellfound expects this from every application.

You'll see the automation running in Console window.

image

All the best! Sachin

@priyeshgautam

Copy link
Copy Markdown

After applying to 5 jobs , access got denied
Screenshot 2025-06-08 at 11 36 43 PM

@imsks

imsks commented Jun 9, 2025

Copy link
Copy Markdown
Author

After applying to 5 jobs , access got denied Screenshot 2025-06-08 at 11 36 43 PM

You should consider this case. Increase the delay.

@priyeshgautam

Copy link
Copy Markdown

ok

@Anurag-Band

Copy link
Copy Markdown

For anyone who is facing problem with the cover letter is not filling those can update below in then script

// Step 2: Fill application text
const textarea = document.querySelector('textarea:not([disabled])');
if (textarea) {
const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
window.HTMLTextAreaElement.prototype,
"value"
).set;
nativeInputValueSetter.call(textarea, applicationText);

textarea.dispatchEvent(new Event("input", { bubbles: true }));
textarea.dispatchEvent(new Event("change", { bubbles: true }));
console.log(%cπŸ“ Autofilled application, "color: purple");
}

@kunal2004-dotcom

Copy link
Copy Markdown

this automation is use for applying jobs automatically

@NishantGhosle

Copy link
Copy Markdown

// Step 2: Fill application text
const textarea = document.querySelector('textarea:not([disabled])');
if (textarea) {
const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
window.HTMLTextAreaElement.prototype,
"value"
).set;
nativeInputValueSetter.call(textarea, applicationText);

textarea.dispatchEvent(new Event("input", { bubbles: true }));
textarea.dispatchEvent(new Event("change", { bubbles: true }));
console.log("%cπŸ“ Autofilled application", "color: purple");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment