Add direct URL rate limit text to detection

LinkedIn shows different text on direct /apply/ URL vs button click:
- Button: "Easy Apply limit"
- Direct URL: "limit daily submissions" / "apply tomorrow"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 17:58:37 -08:00
parent 374b2e6640
commit dfe6810acc

View File

@@ -148,7 +148,8 @@ export async function apply(page, job, formFiller) {
const text = (document.body.innerText || '').toLowerCase();
const closed = text.includes('no longer accepting') || text.includes('no longer available') ||
text.includes('this job has expired') || text.includes('job is closed');
const rateLimited = text.includes('easy apply limit') || text.includes('limit easy apply');
const rateLimited = text.includes('easy apply limit') || text.includes('limit easy apply') ||
text.includes('limit daily submissions') || text.includes('apply tomorrow');
return { closed, rateLimited };
}).catch(() => ({ closed: false, rateLimited: false }));
if (pageCheck.rateLimited) {