Skip to content

Instantly share code, notes, and snippets.

@azizur
Created April 10, 2023 10:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azizur/141a76926a2d1d62b7cb0e647f7cede8 to your computer and use it in GitHub Desktop.
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/)
// 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