Skip to content

Instantly share code, notes, and snippets.

@carchrae
Last active July 2, 2021 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carchrae/e44403aa0995c1aa23b8f27347db050e to your computer and use it in GitHub Desktop.
Save carchrae/e44403aa0995c1aa23b8f27347db050e to your computer and use it in GitHub Desktop.
// 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);
@carchrae
Copy link
Author

carchrae commented Jul 2, 2021

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.

@carchrae
Copy link
Author

carchrae commented Jul 2, 2021

@carchrae
Copy link
Author

carchrae commented Jul 2, 2021

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