Skip to content

Instantly share code, notes, and snippets.

@mniak
Last active January 2, 2026 14:14
Show Gist options
  • Select an option

  • Save mniak/7b09f07b42743722eb7ec89954eeb320 to your computer and use it in GitHub Desktop.

Select an option

Save mniak/7b09f07b42743722eb7ec89954eeb320 to your computer and use it in GitHub Desktop.
let DEFAULT_DELAY = 500;
function deleteFirstConversation(callback) {
$(".conversation-actions-menu-button").click();
setTimeout(() => {
$("mat-icon[data-mat-icon-name='delete']").click();
setTimeout(() => {
$("button[data-test-id='confirm-button']").click();
if (callback) {
callback();
}
}, DEFAULT_DELAY);
}, DEFAULT_DELAY);
}
function deleteConversationLoop() {
deleteFirstConversation(() => {
console.log("Deleted. Doing again...");
setTimeout(() => {
deleteConversationLoop();
}, DEFAULT_DELAY);
});
}
deleteConversationLoop();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment