Skip to content

Instantly share code, notes, and snippets.

@eviltester
Last active March 11, 2024 00:05
Show Gist options
  • Save eviltester/11093f0e4c501a41990e227393184eda to your computer and use it in GitHub Desktop.
Save eviltester/11093f0e4c501a41990e227393184eda to your computer and use it in GitHub Desktop.
uncheck twitter interests
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;});
@amalic
Copy link

amalic commented Dec 19, 2022

This one works for me in Chrome

  1. Browse to https://twitter.com/settings/your_twitter_data/twitter_interests
  2. Open developer tools and enter following one-liner into your console
$$('input:checked').forEach( (w) => { w.click() } ); console.log('done');

this worked for me quicker then other solutions, i'm using brave browser. thanks.

👍

@jcambien
Copy link

If you have a lot of checked interests, X will start to ignore your requests and return a 503 HTTP error if you uncheck them too fast.
Here is a script that uncheck interests every 2 seconds, just launch it and wait until the counter has reached the end.

var counter = 0;
var wait = 2000;
var interests = $$('input:checked');

interests.forEach( (w) => {
    var current = counter;
    setTimeout(() => {
        console.log(current + '/' + interests.length);
        w.click();
    }, wait * counter);
    counter++;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment