Last active
June 12, 2025 23:26
-
-
Save tracker1/f09a238d39296e16458513a7d7b08bd6 to your computer and use it in GitHub Desktop.
Clear Google Voice Call Log
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
/* | |
Clears the current call tab, don't use this if you want to keep anything. | |
It might help to scroll to the bottom of the log before running, | |
sometimes it can go wonky prematurely showing as clear. | |
*/ | |
var delay = (ms) => new Promise(r => setTimeout(r, ms)); | |
(async function(){ | |
let todo; | |
do { | |
todo = Array.from(document.querySelectorAll('div.batch-selection')); | |
for (let n of todo) { | |
await delay(100); | |
n.click(); | |
} | |
document.querySelector('#messaging-view > div > md-content > div > gv-thread-list-ng2 > section > gv-batch-thread-selection-header > div > span:nth-child(3) > button:nth-child(2)')?.click(); | |
await delay(800); | |
document.querySelector('gv-basic-dialog > mat-dialog-actions > button.mdc-button.mat-mdc-button-base.mdc-button--unelevated.mat-mdc-unelevated-button.mat-primary.ng-star-inserted')?.click(); | |
await delay(2000); | |
} while(todo.length); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment