RyanHx

joined 1 year ago
[–] [email protected] 28 points 1 year ago (11 children)

People raise a good point that in countries where political dissent can actually be dangerous, this would very much dissuade people from voting on things they believe in, or even coming anywhere near Lemmy period.

A better approach I think would be to have the user's host instance save their votes (the database obviously needs to remember what you voted on), but when federating those votes with other instances just hand over a cumulative total, e.g., "here on vlemmy.net we have +18 votes for this comment", which the other instances can then add. There's no need to send user information with that data.

[–] [email protected] 12 points 1 year ago (1 children)

I'd also recommend https://lemmyverse.net/communities for finding new communities as it sorts by active users and other metrics. Set which instance you're on with the house button in the top right so all the links take you to the instance you're logged in on.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

The only official way is for the admin of your instance to defederate from the instance you want blocked, but that affects every registered user on your instance, even if they're against the action.

I just released a user script that lets you block instances yourself on the client-side as a regular user - basically just removes post and comments from the HTML if they match your block list.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Cool, and thanks for posting the update!

[–] [email protected] 6 points 1 year ago (4 children)

This means you’re targeting these classes/ID’s at your own peril, and they may break in a future update.

Me who's just released a script using CSS selectors:

[–] [email protected] 2 points 1 year ago

See my edit to the above comment, I misunderstood at first.

[–] [email protected] 1 points 1 year ago

Yep I'm hoping we get more user-level control over the instances we see. This script is a naive client-side approach of just removing the HTML nodes of matching posts, but having it done on the server side would be ideal.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

Nope it can block other instance's communities. This script will block all posts at an instance level though, rather than having to keep adding blocked communities when people create more on that instance.

10
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/plugins
 

Requires: greasemonkey/tampermonkey/other script injector.

If your home instance is federated with instances you don't want to see, you can use this script to remove all posts and comments from that instance without having to block communities individually.

Example:

Line 17: const blockedInstances = ["example.ml","lemmy.world"];

Will block:

[email protected] posts to [email protected]

[email protected] posts to [email protected]

[email protected] comments on any post

Usage:

Edit the comma-seperated list on line 17 to the instances you wish to block. Add new ones inside quotes following a comma. Do not include https:// or trailing forward slashes in the instance text.