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:
@@ -148,7 +148,8 @@ export async function apply(page, job, formFiller) {
|
|||||||
const text = (document.body.innerText || '').toLowerCase();
|
const text = (document.body.innerText || '').toLowerCase();
|
||||||
const closed = text.includes('no longer accepting') || text.includes('no longer available') ||
|
const closed = text.includes('no longer accepting') || text.includes('no longer available') ||
|
||||||
text.includes('this job has expired') || text.includes('job is closed');
|
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 };
|
return { closed, rateLimited };
|
||||||
}).catch(() => ({ closed: false, rateLimited: false }));
|
}).catch(() => ({ closed: false, rateLimited: false }));
|
||||||
if (pageCheck.rateLimited) {
|
if (pageCheck.rateLimited) {
|
||||||
|
|||||||
Reference in New Issue
Block a user