Created
April 10, 2023 10:20
-
-
Save azizur/141a76926a2d1d62b7cb0e647f7cede8 to your computer and use it in GitHub Desktop.
Automate clean up on LinkedIn Saved Jobs (https://www.linkedin.com/my-items/saved-jobs/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Visit https://www.linkedin.com/my-items/saved-jobs/?cardType=ARCHIVED | |
// window.location.replace('https://www.linkedin.com/my-items/saved-jobs/?cardType=ARCHIVED'); | |
(function clanupSavedJobs() { | |
setInterval(() => { | |
const results = document.querySelectorAll('.entity-result__actions-overflow-menu-dropdown'); | |
results.forEach((entry, index) => { | |
setTimeout(() => { | |
const button = entry.querySelector('button'); | |
button.click(); | |
setTimeout(() => { | |
console.log('Delayed for 1 second.'); | |
const [, , unsave] = document.querySelectorAll('.artdeco-dropdown__content .image-text-lockup__text'); | |
unsave.click(); | |
}, 200 * index); | |
}, 1000 * index); | |
}); | |
}, 3000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment