|
(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;'); |
|
})(); |
After applying to 5 jobs , access got denied
