Skip to content

Instantly share code, notes, and snippets.

@nishantrpai
Last active September 18, 2024 05:34
Show Gist options
  • Save nishantrpai/f33e5193e93148f5931ef4f130654305 to your computer and use it in GitHub Desktop.
Save nishantrpai/f33e5193e93148f5931ef4f130654305 to your computer and use it in GitHub Desktop.
  1. Go to https://x.com/settings/your_twitter_data/twitter_interests
  2. Go to console

Paste below

var checkboxes = document.querySelectorAll('input[type=checkbox]');
var checkedBoxes = Array.prototype.filter.call(checkboxes, function(box) {
    return box.checked;
});

function uncheckWithDelay(index) {
    if (index < checkedBoxes.length) {
        checkedBoxes[index].click();
        setTimeout(function() {
            uncheckWithDelay(index + 1);
        }, 3000); // 3 seconds delay
    }
}

uncheckWithDelay(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment