Last active
January 2, 2026 14:14
-
-
Save mniak/7b09f07b42743722eb7ec89954eeb320 to your computer and use it in GitHub Desktop.
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 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