Last active
May 2, 2024 05:56
-
-
Save dhjw/13c4b06357551c394eab014d536f1596 to your computer and use it in GitHub Desktop.
Console Javascript to unblock or unmute all Twitter/X accounts
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
# TODO: loop until b is empty, automatically scroll down with a short delay | |
# click all visible Unblock buttons | |
var b = document.querySelectorAll("div[aria-label='Blocked']") | |
for (i = 0; i < b.length; i++) b[i].click(); | |
# click all visible Unmute buttons | |
var b = document.querySelectorAll("div[aria-label^='Unmute']") | |
for (i = 0; i < b.length; i++) b[i].click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment