Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save samascience/4b4cc69cfd882b3c6b0cf51bfc826fc5 to your computer and use it in GitHub Desktop.
Save samascience/4b4cc69cfd882b3c6b0cf51bfc826fc5 to your computer and use it in GitHub Desktop.
Script to help automatically delete ARCHIVED Jobs on LinkedIn, LinkedIn only allows you to delete 1 job at a time which is a problem when you have hundreds of saved jobs.
// Open Chrome. Not tested on other browsers but should work ¯\_(ツ)_/¯.
// Go to https://www.linkedin.com/my-items/saved-jobs/
// Make sure Saved and not Applied is selected.
// Open the Chrome Dev Tools by hitting F12 on your keyboard.
// Go to Console tab.
// Paste this script in the space bellow after the little > symbol.
// Hit Enter.
// The jobs will start to be deleted 1 by 1 after a 5 sec pause.
// Leave the window open but you can do something else while it does it's thing.
// If it gets tripped up just start over.
// Close or refresh the tab to stop it.
setInterval(function(){
//click on the 3 dots drop down menu
document.getElementsByClassName('artdeco-button--tertiary')[1].click()
var second = document.getElementsByClassName('image-text-lockup__text')[1]
var third = document.getElementsByClassName('image-text-lockup__text')[2]
var fourth = document.getElementsByClassName('image-text-lockup__text')[3]
if(third.textContent.includes("Unsave")){
//Job no longer taking applications need to click third item on drop down list
second.click()
}else{
//Job still hiring need to click fourth item on drop down list
third.click()
}
//Dismiss the item unsaved popup after waiting 2 seconds for it to appear.
setTimeout(function(){
document.getElementsByClassName('artdeco-toast-item__dismiss')[0].click()
},2000);
},4000);
// Wait 4 seconds between deleting items, seems to work well to give the list enough time to reload after a delete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment