Do you want to block threads from your account? :ablobcatnod:
Would you rather eat a plastic milk jug ring than see a :facebook: Facebook minion meme on your timeline? :ablobcatnodfast:
Well oh boy do I have a treat for you! If you're like me and have at least three different Mastodon accounts (or even just one!), you can dom-block them quick fast and in a hurry...
- Sᴛᴇᴘ 1: Login to your account. 🖼️¹
- Sᴛᴇᴘ 2: Go to Settings, then Development 🖼️²
- Sᴛᴇᴘ 3: Create a New application with at least write or write:blocks access. 🖼️³
- Sᴛᴇᴘ 4: After you saved, click on the name of your application and copy Your access token 🖼️⁴
- Sᴛᴇᴘ 5: Repeat for all your accounts, then run the following shell script... (with your info in the first part, of course)
readarray -t pw <<EOF
infosec.exchange KEY1
mastodon.social KEY2
defcon.social KEY3
EOF
massdomblock() {
local i c u p
while [ -n "$1" ]; do
for ((i=0;i<${#pw[@]};i++));do
read -ra p <<<"${pw[i]}"
u="$p/api/v1/domain_blocks"
u="https://${u}?domain=$1"
c="Authorization: Bearer ${p[1]}"
curl -H "$c" -X "POST" "$u"
done; shift; echo
done;
}
massdomblock threads.com threads.net
Mastodon API documentation relating to accounts can be found here:
➡️https://docs.joinmastodon.org/methods/accounts
#MastodonTips #Threads #Privacy #️⃣CatSalad