Open https://www.linkedin.com/ in a web browser, got to developer option and then paste the script in Console window and clink enter.
timer = setInterval(() => {
// select all messages
items = document.querySelectorAll('div.msg-selectable-entity__checkbox-container > input');
for (let i = 0; i < items.length; i++) {
items[i].click();
}
setTimeout(() => {
// click archive button
buttons = document.querySelectorAll('div.display-flex.mvA > button[title="Archive"]');
if (buttons.length == 1) {
buttons[0].click();
}
}, 1000);
}, 5000)
Comments
Post a Comment