kheina-com / Blue-Blocker

Blocks all Twitter Blue verified users on twitter.com
Mozilla Public License 2.0
351 stars 27 forks source link

Block everyone in the hidden replies #346

Open Hamst3r opened 1 month ago

Hamst3r commented 1 month ago

Feature requested/tracked: blocking everyone in the hidden replies to a tweet. Related: #350, #351


I'd really appreciate the ability to just block every account that's been put into the hidden replies of a post, or who's in a particular community, or on a particular list.

I see it as the sort of thing I wouldn't have on all the time, just when I find a situation where I'd want to block all visible accounts, then I'd enable the option and refresh the page for a clean sweep.

As-is, even with the word filters I use, it misses a lot of people who I would block, because there's nothing about their name that meets the criteria, and block via words in bio wouldn't be 100% either. Some people have a nondescript name and their bio is blank, but their post sucks.

rougetimelord commented 1 month ago

Going to split this into three issues real quick

rougetimelord commented 1 month ago

API endpoint for hidden replies /api/.../ModeratedTimeline/

If we know the ID for a tweet with hidden replies we can request them using the variables query string parameter set to variables={"rootTweetId":<tweet ID string>,"count":20}. Not super sure what the maximum we can get is (I would guess 200) or how pagination works. We can detect that a tweet has hidden replies if the hasModeratedReplies field is set to true. It would be feasible (but out of scope) to make API requests to get all of the hidden replies directly.