-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathExpand LinkedIn Recruiter profile
1 lines (1 loc) · 2.53 KB
/
Expand LinkedIn Recruiter profile
1
javascript:(function()%7Bjavascript%3A(function() %7B%0A %2F%2F Run the click action for the "Show more" buttons the first time%0A document.querySelectorAll('%5Bid%5E%3D"expandable-list-"%5D%5Bid%24%3D"-expand-more-lower-button"%5D').forEach(button %3D> button.click())%3B%0A%0A %2F%2F Wait a short moment (1000ms %3D 1 second) before running the action again%0A setTimeout(function() %7B%0A %2F%2F Run the click action for the "Show more" buttons the second time%0A document.querySelectorAll('%5Bid%5E%3D"expandable-list-"%5D%5Bid%24%3D"-expand-more-lower-button"%5D').forEach(button %3D> button.click())%3B%0A%0A %2F%2F Now expand all buttons with aria-expanded%3D"false"%0A const expandableButtons %3D document.querySelectorAll('button%5Baria-expanded%3D"false"%5D')%3B%0A if (expandableButtons.length > 0) %7B%0A expandableButtons.forEach(button %3D> %7B%0A button.click()%3B%0A %7D)%3B%0A %7D%0A%0A %2F%2F Now click all "See more" links with the ID "line-clamp-show-more-button"%0A const seeMoreLinks %3D document.querySelectorAll('a%23line-clamp-show-more-button%5Baria-expanded%3D"false"%5D')%3B%0A if (seeMoreLinks.length > 0) %7B%0A seeMoreLinks.forEach(link %3D> %7B%0A link.click()%3B%0A %7D)%3B%0A %7D%0A%0A %2F%2F Now click all "See more of summary" buttons%0A const seeMoreButtons %3D document.querySelectorAll('button.decorated-line-clamp__see-more-button')%3B%0A if (seeMoreButtons.length > 0) %7B%0A seeMoreButtons.forEach(button %3D> %7B%0A button.click()%3B%0A %7D)%3B%0A %7D%0A%0A %2F%2F Now click all "See more" buttons with the class "expandable-list-profile-core__expand-btn" and "background-section__expandable-btn"%0A const seeMoreExpandableBtns %3D document.querySelectorAll('button.expandable-list-profile-core__expand-btn.background-section__expandable-btn')%3B%0A if (seeMoreExpandableBtns.length > 0) %7B%0A seeMoreExpandableBtns.forEach(button %3D> %7B%0A button.click()%3B%0A %7D)%3B%0A alert('Clicked "Show more" buttons twice%2C expanded collapsible sections%2C clicked all "See more" links%2C "See more of summary" buttons%2C and all "See more" expandable buttons.')%3B%0A %7D else %7B%0A alert('No "See more" expandable buttons found.')%3B%0A %7D%0A %7D%2C 1000)%3B %2F%2F Adjust the timeout if needed for loading%0A%7D)()%3B%7D)()%3B