Last active
March 12, 2025 08:33
-
-
Save Vlasterx/b244b9b27ade8a6dd7eb2ffd3aae8d99 to your computer and use it in GitHub Desktop.
Delete all LinkedIn posts version for June 2021.
This file contains hidden or 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
(() => { | |
let speedMs = 500 | |
setInterval(() => { | |
let dropdown = document.querySelector('.feed-shared-update-v2__control-menu .artdeco-dropdown button') | |
dropdown.click() | |
setTimeout(() => { | |
let optionDel = dropdown.parentElement.parentElement.parentElement.querySelector('.option-delete .tap-target') | |
if (optionDel === null) { | |
setTimeout(() => { window.scrollTo(0,document.body.scrollHeight) }, speedMs * 4) | |
} else { | |
optionDel.click() | |
setTimeout(() => { | |
document.querySelector('.artdeco-modal .feed-shared-decision-modal__confirm-button').click() | |
}, speedMs) | |
} | |
}, speedMs) | |
}, speedMs) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Delete LinkedIn comments AND unlike posts
I used to use this one, while I was on LinkedIn. I don't know if it works today.
Open a profile page with your comments and run this bookmarklet. It will delete your comments AND unlike other posts at the same time. You can watch in console log how it goes.
Just be sure to change
accountHref
andaccountName
.When you change this, minimize JS and then put that code in here and add it to bookmark URL.
You will need to run this several times, because LinkedIn doesn't display all of your content at once.