---
title: "Sync Mutes and Blocks"
slug: sync-mutes-and-blocks
canonical_url: https://nerdymomocat.github.io/posts/sync-mutes-and-blocks/
collection: Stream
published_at: 2024-03-03T00:00:00.000Z
updated_at: 2024-03-03T00:00:00.000Z
tags: 
  - Process
  - Thoughts
  - AI
author: "Nerdy Momo Cat"
---

## Navigation Context

- Canonical URL: https://nerdymomocat.github.io/posts/sync-mutes-and-blocks/
- You are here: Home > Posts > Stream > Sync Mutes and Blocks

### Useful Next Links
- [Home](https://nerdymomocat.github.io/)
- [Bundles](https://nerdymomocat.github.io/collections/bundles/)
- [Logbook](https://nerdymomocat.github.io/collections/logbook/)
- [Notes](https://nerdymomocat.github.io/collections/notes/)
- [Stream](https://nerdymomocat.github.io/collections/stream/)

### Related Content

#### Pages That Mention This Page
- [Code and Snippets](https://nerdymomocat.github.io/posts/code-and-snippets/)

I finally synced the block list and muted word list between my main and alt accounts on twitter, and I feel so relieved 😅. You might be wondering how I did it?

At the moment, it's a completely non-automated process because API costs money. I downloaded the archived data through X, extracted the block list and mute list from block.js and mute.js using GPT4 code analysis, and then copied and pasted the curl commands into a for loop for all the darn accounts with userid as a variable. I even took a scrolling screenshot of muted words, converted it into a list using GPT4-V, and muted those through a bash script with cookie tokens.

You can sense my desperation from this. I was tired of seeing the same nonsense across multiple accounts for over a year, and I just had to do something about it.

Mar 3, 2024, 08:52 PM: I got tired of trying to find userids from usernames for new blocks, because of course I wasn’t going to download the archive every time. There are websites you can do it from, but I wanted an option to not leave the website, and hence [this comment](https://gist.github.com/kentbrew/8942accb5c584f11a775af02d097dd40?permalink_comment_id=4553469#gistcomment-4553469) from github helped. Paste it into console and voila.

```
id = JSON.parse(
document.evaluate(
    '//script[@type="application/ld+json"]', 
    document.lastChild, 
    null,
    XPathResult.ANY_TYPE, null).iterateNext().textContent
).author.identifier;
```

Someday, I will use these libraries but today is not that day

[

GitHub - trevorhobenshield/twitter-api-client: Implementation of X/Twitter v1, v2, and GraphQL APIs

Implementation of X/Twitter v1, v2, and GraphQL APIs - trevorhobenshield/twitter-api-client

![title](https://www.google.com/s2/favicons?domain=github.com)

https://github.com/trevorhobenshield/twitter-api-client

![title](https://opengraph.githubassets.com/ad044579c242f5e37f3e068b634cab796d943f12ebc32da29c96646c595def62/trevorhobenshield/twitter-api-client)

](https://github.com/trevorhobenshield/twitter-api-client)

Bookmark for [https://github.com/trevorhobenshield/twitter-api-client](https://github.com/trevorhobenshield/twitter-api-client)

[

![title](https://www.google.com/s2/favicons?domain=www.npmjs.com)

https://www.npmjs.com/package/rettiwt-api





](https://www.npmjs.com/package/rettiwt-api)

Bookmark for [Just a moment...](https://www.npmjs.com/package/rettiwt-api)