var elements = document.querySelectorAll("[aria-label^='Dismiss']");
elements.forEach(element => {
element.click();
});
https://twitter.com/settings/your_twitter_data/twitter_interests
async function clickCheckedCheckboxesWithDelay() {
const checkboxes = document.querySelectorAll('input[type="checkbox"][aria-describedby^="CHECKBOX_"]');
for (const checkbox of checkboxes) {
if (checkbox.checked) {
checkbox.click();
console.log(`Clicked checkbox with aria-describedby: ${checkbox.getAttribute('aria-describedby')}`);
await new Promise(resolve => setTimeout(resolve, 2000));
} else {
console.log(`Skipped unchecked checkbox with aria-describedby: ${checkbox.getAttribute('aria-describedby')}`);
}
}
console.log('Finished processing all checkboxes');
}
clickCheckedCheckboxesWithDelay();