kheina-com / Blue-Blocker

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

Whitelist or A Way To Filter Blocked User #234

Open Kinomora opened 6 months ago

Kinomora commented 6 months ago

A lot of users who use social media as a means to promote their business (streamers, content creators, artists, etc) and were "tricked" into buying Blue in order to improve their ratings in search results and engagement farming.

Many of these users I dont "want" to block automatically using this plugin but can't avoid doing so unless I pay attention to every toast that comes through.

Would it be possible to add a feature that allows you to whitelist text or characters in usernames/nicknames) or possibly any users with a linktree or twitch or w/e link in their bio?

cooljeanius commented 5 months ago

Whitelists are known as "safelists" in BlueBlocker, and if you unblock someone while BlueBlocker is active, it'll notice that and it won't block that account again... does that help?

rougetimelord commented 5 months ago

It would be possible to add a setting to ignore accounts that have links in their bio as the extension gets the full profile data for users. You would just need to check the user object after this if block https://github.com/kheina-com/Blue-Blocker/blob/8ed9701707c2bda5f37b3026e4aa7af809c48111/src/parsers/instructions.ts#L44C2-L47C3, and add a toggle for the option to the popup.

I would be supportive of a pull request if you submitted one :)

rougetimelord commented 5 months ago

Actually it would probably be better to do the check in this function https://github.com/kheina-com/Blue-Blocker/blob/8ed9701707c2bda5f37b3026e4aa7af809c48111/src/shared.ts#L493

Kinomora commented 4 months ago

Thanks for the info and the arrow! I still have this on my radar but things have been pretty busy for me and I haven't had an opportunity to look into it.