Last active
July 2, 2021 22:41
-
-
Save carchrae/e44403aa0995c1aa23b8f27347db050e 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
// go to https://twitter.com/settings/your_twitter_data/twitter_interests | |
// paste into dev tools console | |
const checks= [...document.querySelectorAll("div > input[type='checkbox']:checked")]; | |
function queueNext(limit){ setTimeout(()=>{ checks.shift().click(); queueNext(limit+=1000); }, limit); } | |
queueNext(10000); |
if it seems to be getting too slow and there are no errors, throw another queueNext(1000)
in there - you don't need to reload the page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can try calling
queueNext(1000);
or faster, but the ridiculous twitter api for opting out sends all the opt-outs in every single request, so it will start giving errors if you call it too often. nearly like they designed the api to be a pain in the ass and cause errors/be hard to opt-out of their suggestions.but you can just reload the page and try again with a larger timeout.
i cannot imagine any sane human would have the patience to opt out otherwise.