Skip to content

Instantly share code, notes, and snippets.

@noseratio
Last active June 10, 2024 00:56
Show Gist options
  • Save noseratio/a9ec504070c31bd49bc3aa117f46e36f to your computer and use it in GitHub Desktop.
Save noseratio/a9ec504070c31bd49bc3aa117f46e36f to your computer and use it in GitHub Desktop.
Reset Twitter interests

Full credits to @eviltester's original post.

Steps:

  1. Goto https://twitter.com/settings/your_twitter_data/twitter_interests

  2. Block https://twitter.com/i/api/1.1/account/personalization/p13n_preferences.json in F12 Network Tools

  3. Execute in F12 Console (copy/paste):

await async function() {
   const checked = document.querySelectorAll("div > input[type='checkbox']:checked");
   for (let c of checked) {
      await new Promise(r => setTimeout(r, 50));
      c.scrollIntoView(true);
      c.click();
   } 
}();
  1. Unblock https://twitter.com/i/api/1.1/account/personalization/p13n_preferences.json in F12 Network Tools

  2. Click any interest topic you still want (to propagate all the changes to Twitter backend).

@D3XX3R
Copy link

D3XX3R commented May 27, 2024

Absolute Legend. Worked like a charm.

@noseratio
Copy link
Author

noseratio commented May 27, 2024

@D3XX3R 🫡

@andrelfre
Copy link

Had to log in just to post this thank you note!

@noseratio
Copy link
Author

@arammz 🙏

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