feat: capture job description from right panel during search — no extra page load

This commit is contained in:
2026-03-06 02:49:28 +00:00
parent 4a2b24d562
commit be20f5a4e9

View File

@@ -88,7 +88,8 @@ export async function searchLinkedIn(page, search, { onPage, onKeyword } = {}) {
for (const ex of excludes) {
if (tl.includes(ex.toLowerCase()) || cl.includes(ex.toLowerCase())) return null;
}
return { title, company, location, work_type: workType };
const description = document.querySelector('.job-details-about-the-job-module__description')?.textContent?.trim().slice(0, 2000) || '';
return { title, company, location, work_type: workType, description };
}, { id: jobId, track: search.track, excludes: search.exclude_keywords || [] });
if (!meta) { seenIds.add(jobId); continue; } // excluded