feat: capture job description from right panel during search — no extra page load
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user