- Search your query on twitter advanced search
Example:
- Open Console: Option + ⌘ + J (on macOS), or Shift + CTRL + J (on Windows/Linux).
Paste:
Array.from(
document.querySelectorAll('article .css-1dbjc4n .r-18u37iz .r-1h0z5md svg')
).map((node, i) => {
if (node.parentElement.parentElement.parentElement) {
setTimeout(() => {
node.parentElement.parentElement.parentElement.click();
document.querySelector('[role="menuitem"]').click();
document
.querySelector('[style="background-color: rgb(244, 33, 46);"]')
.click();
}, i * 1000);
}
});
Note: Script may stop sometime press the up arrow key (you'll see the code again)
- Drink your coffee or milk and relax, watch the tweets disappear into the void.
updated the script