zbluebugz / facebook-clean-my-feeds

Clean up Facebook feeds by hiding sponsored, suggestions and other posts based on keywords.
GNU General Public License v3.0
113 stars 13 forks source link

Anonymous participant #56

Closed Rusenche closed 4 months ago

Rusenche commented 5 months ago

I came across posts that are from "Anonymous participant" and there is no way to block this user, and even with the script I didn't see such an option.

What can be done about this to block this user and/or unfollow the posts from such users?

Here is one such post: https://www.facebook.com/groups/175502151106970/?multi_permalinks=771083391548840

zbluebugz commented 5 months ago

Bug with the group's text-filter code - not detecting "Anonymous participant", but is detecting another person's name.

Will apply a fix for next release.

zbluebugz commented 5 months ago

v4.28.8-beta available for testing

I don't see many "Anonymous participant" posts in my "Groups Feed" - so I'm interested in your feedback.

zbluebugz commented 5 months ago

To test - use the Groups Feed's Text filter option - add "Anonymous participant".

Rusenche commented 5 months ago

@zbluebugz commented 5 hours ago To test - use the Groups Feed's Text filter option - add "Anonymous participant".

No positive change when testing with FB - Clean my feeds (v.4.28b8).

Hja

I have a suggestion - as you can see from the picture - at the top somewhere of your script to write its version so that it is visible.

Rusenche commented 5 months ago

Addendum: There is a change though if the post from such Anonymous Participant is located https://www.facebook.com/?sk=h_chr and with scrolling going back 19 hours until I find the post there is a positive change but not in the Groups Feed menu, but in the News Feed menu (I manually wrote Anonymous participant) - so I had two such posts from Anonymous participant in a row, which disappeared.

But if you go directly to such a post https://www.facebook.com/groups/175502151106970/posts/771083184882194/ again from Anonymous participant - no matter if I write in both menus Groups Feed and News Feed - the post is not hidden.

This is the first time I've seen a post like this - from Anonymous participant. I didn't know that existed.

For the first time yesterday I saw a user with only one name. I didn't know it was possible to register with just one name. It could be a bot, I don't know.

zbluebugz commented 5 months ago

From your screen shot of the settings, the Group Feed's Text filter is not "Enabled". It needs to be enabled to allow the Text-filter functionality to work.

Here's a screen-shot snippet:

image

You mentioned seeing the "Anonymous participants" in the main News Feed as well. Enable the News Feed's Text filter to hide those posts as well.

image

I'll have look at the option of listing script's version number somewhere in the dialogbox.

Rusenche commented 5 months ago

Yes, yes it is enabled, I saw what you wrote about when I posted my previous comment and forgot to write back then that when I was doing the tests I had enabled the setting, but I didn't note it in the picture.

Yes, I ran the tests exactly as you reflect, ~30 minutes ago.

zbluebugz commented 5 months ago

Try testing again - this time, translate "Anonymous participant" into the language FB is displaying the user's name - the screen-shot of the post doesn't show "Anonymous participant" in English ...

Rusenche commented 5 months ago

This is what I did a few hours ago while testing and it was logical, because even a few hours ago I tested it, writing it in Cyrillic and in Latin. But as I wrote in my previous comments - this only works in News Feed and when scrolling https://www.facebook.com/?sk=h_chr to the corresponding post with the anonymous user.

But I tested the same very thoroughly by writing both Cyrillic and Latin directly at https://www.facebook.com/groups/175502151106970/posts/771083184882194/. But as I wrote here: https://github.com/zbluebugz/facebook-clean-my-feeds/issues/56#issuecomment-1925895082 - it doesn't work. It just doesn't work here. The post from this anonymous user is not hidden from me under any settings. I show in the picture.

hajja

Specifically at this address, @zbluebugz, is the post from the anonymous user hidden from you?!

zbluebugz commented 5 months ago

Thanks for the feedback.

Which language(s) do you normally use in FB? (If not listed in the languages the script knows about, I might add it).

There are two Groups Feed links.

1) https://www.facebook.com/groups/ The script knows how to filter/process the posts in this Groups Feed.

2) https://www.facebook.com/?filter=groups&sk=h_chr The script doesn't know how to filter/process the posts in this Groups Feed It detects it as a Groups Feed, but the posts have a different HTML structure from link # 1 - hence the current issue(s).

I will update the script to filter/process posts found in Groups Feed via link # 2

Notes:

Rusenche commented 5 months ago

@zbluebugz, thanks for the detailed explanation. I understand from your note 2 that when viewing a single post, it is impossible for such an anonymous user to be hidden via the script.

As for "(If not listed in the languages the script knows about, I might add it)" - this list of languages is probably hidden because no language selection menu appears, through which I can freely choose one of the... as many as they are. I assume that the default language is determined by the selected language of the browser, and if the selected language of the browser (as in my case - Bulgarian language - BG) and the language in facebook (is Bulgarian language - BG), the script does not contain this language and by default, the script chooses the English language, without me personally having the opportunity to choose a language close to my own.

I just tested from https://www.facebook.com/groups/175502151106970 and there were posts from Administrator. I wrote it in Cyrillic in the corresponding field and successfully posts from author Administrator were hidden. I just tested and it works.

You're getting closer to the next stable release. Yes, the number of the installed version of the script is also good to add somewhere above in the script (to the right after Clean my feeds - v.xx.xx).

:}

zbluebugz commented 5 months ago

Re note 2 - viewing a single post - it is possible to hide it, but if implemented, I'd probably get quite a few complaints about this feature.

Can you try Version 4.28-beta-09 - let me know if it works in relation to Anonymous participant posts.

Regarding the languages the script knows about when displaying the fb-cmf dialog box + message tabs.

The display of the script's version number is now listed next to the fb-cmf's title.

Rusenche commented 5 months ago

@zbluebugz commented 3 hours ago Re note 2 - viewing a single post - it is possible to hide it, but if implemented, I'd probably get quite a few complaints about this feature.

You decide. But why should you get complaints?! I reason logically - if a user personally hides an unwanted post hidden by this script, why would anyone bother? I'm thinking out loud as they say. ;)

@zbluebugz commented 3 hours ago I'll look into adding Bulgarian to the script's language pack.

You decide whether to do it. I am writing this because you above expressed the intention that you could add the language if it is not there.

@zbluebugz commented 3 hours ago The display of the script's version number is now listed next to the fb-cmf's title.

I congratulate you for taking my idea and implementing it.

@zbluebugz commented 3 hours ago Can you try Version 4.28-beta-09 - let me know if it works in relation to Anonymous participant posts.

From my tests, I found that in the News Feed and in the Groups Feed, when I write in Latin in their respective fields Anonymous participant - there is no positive effect. To have a positive effect on News Feed and on Groups Feed I have to write exactly in their respective fields in my language (what is the language in facebook - Анонимен участник and then the posts from the anonymous participant are hidden.

Your script is remarkable. I'm fascinated, but I know it takes time and effort that you put in, but you have my respect and thank you, @zbluebugz.

Rusenche commented 5 months ago

@zbluebugz, just to clarify i want to ask...

# shares - what is it for?!

I think it's different from "share a memory".

Yesterday and today I started to see exactly such "share a memory" messages that I tried to block using your script, but none of them worked. Until I remembered to write in the text boxes of the News Feed and in the Groups Feed in my language (Bulgarian - BG) сподели спомен and such posts were hidden. Apparently that's the solution.

I was fascinated to be able to hide such unwanted posts. ;)))

Rusenche commented 5 months ago

@zbluebugz, I have one more question besides what is # shares for.

Is it possible for you through your script to make it so that there is a menu where we can choose to make our individual/personal facebook profile hidden?! I mean other users don't see us being online (we are hidden/offline).

zbluebugz commented 5 months ago

# shares - what is it for?!

It's for hiding the number of times a post has been shared. Someone requested this - wasn't too sure why, but I added the functionality ...

See red box in screen-shot: image

zbluebugz commented 5 months ago

other users don't see us being online (we are hidden/offline)

You'd have to do this manually - the userscript doesn't use any of FB's APIs.

How to: 1) Click on the "..." next to "Contacts" (top right of page) 2) Click on "Active Status: ON" 3) Toggle the option(s) accordingly ...

image

zbluebugz commented 5 months ago

I was fascinated to be able to hide such unwanted posts. ;)))

Welcome to my world - hiding posts that I have no interested in! :-D

zbluebugz commented 5 months ago

Did some testing with FB's language set to Bulgarian and found that it wasn't processing one of the "Groups feed" properly. The HTML structure is slightly different from what I see in my region and using English as FB's language.

Can you try Version 4.28-beta-10 - let me know if it works. FYI, Bulgarian has been added to the script's language pack.

Rusenche commented 5 months ago

@zbluebugz commented 1 hour ago

other users don't see us being online (we are hidden/offline)

You'd have to do this manually - the userscript doesn't use any of FB's APIs.

How to:

  1. Click on the "..." next to "Contacts" (top right of page)
  2. Click on "Active Status: ON"
  3. Toggle the option(s) accordingly ... 302448343-669a23f5-869d-414b-8aad-284f96fceeba

I didn't know about this menu, thanks. ;)

@zbluebugz commented 1 hour ago Did some testing with FB's language set to Bulgarian and found that it wasn't processing one of the "Groups feed" properly. The HTML structure is slightly different from what I see in my region and using English as FB's language.

Can you try Version 4.28-beta-10 - let me know if it works. FYI, Bulgarian has been added to the script's language pack.

I removed beta 09 and installed beta 10. The Bulgarian language appeared and thank you very much. ;) Now I seem to be more comfortable using the script. :P

I've only tested beta 10 with the anonymous contributor and so far so good. I have no idea what exactly is not working correctly (what you are referring to) and whether there will be some kind of problem with the Bulgarian language, but...... (the bad thing is that I don't have the option, if I want - to change the language to English? If you add some language selection menu.....)

If there is a problem, I will write. ;}

I am very glad that you and I have similar tastes and hide everything that is superfluous. ;}

Rusenche commented 5 months ago

302429332-1d3af856-4495-4209-887a-12c6cfd818e6

@zbluebugz, addition.

Am I correct in noticing that if I hide my status and am hidden to others - then I can't see if others are online either?! Because everyone else appears to be offline when I'm hidden?!

zbluebugz commented 5 months ago

Am I correct in noticing that if I hide my status and am hidden to others - then I can't see if others are online either?

Apologies - It has been a long time since I used this facility - it appears FB has changed it's behaviour since I last saw/used it (several years!). I used to be able to hide my status and still see everyone else's status.

That has changed.

If you want certain people to know of your status and some not to know of your status, click the "Active Status: ON", which brings up another dialog-box and then either click on either "Edit" for "Active Status: ON for some" or Active Status: OFF for some".

image

zbluebugz commented 5 months ago

I don't have the option, if I want - to change the language to English? If you add some language selection menu...

Will add this to the TODO list. It won't be done for v4.28.

Rusenche commented 5 months ago

@zbluebugz commented 6 hours ago Apologies - It has been a long time since I used this facility - it appears FB has changed it's behaviour since I last saw/used it (several years!). I used to be able to hide my status and still see everyone else's status.

That has changed.

If you want certain people to know of your status and some not to know of your status, click the "Active Status: ON", which brings up another dialog-box and then either click on either "Edit" for "Active Status: ON for some" or Active Status: OFF for some".

302448343-669a23f5-869d-414b-8aad-284f96fceeba

Yes, yes, I saw that too, but I meant that if I enable the setting for myself to hide my status - without changing the other settings (who specifically I'm hidden for) - then I don't see anyone else either users, are they live, because in this specific case - all users are matte, which means = I am hidden for absolutely everyone and I, they are all hidden for me too. This is what I found in this case study.

Rusenche commented 5 months ago

@zbluebugz, call me a perfectionist, but for myself, I made it spell like this:

hajj

My understanding is that it should always be spelled like this: v.4.28 beta 10.

But the bad thing is that I have to manually edit it every time there is a new stable version and/or when there is a new beta version, unless you do it my elegant way. :P


Addendum: But the bad thing is that after manually checking for available updates - your script updated and broke my renaming the way I liked it and now I can't overwrite it the way I want to see it written. :|

zbluebugz commented 5 months ago

Script was using the meta tag @version to display the version number.

However, Tampermonkey doesn't like spaces in the meta @version tag ...

Version 4.28-beta-10 has been amended to use an alternative method. Now shows (v4.28 beta 10)

Rusenche commented 5 months ago

Now it's just the way I want it. Thanks.

@zbluebugz but that change remained unaffected here:

hsajjj

If I manually change the name exactly as you see it in the picture, when manually pressing to check for update - it immediately reverts to its default name and does not save this name that I manually set.

In the picture you can see all my scripts, I have manually changed the names of most of them to suit me.

I hope you will also correct what I show in the picture how I want it to be.

And something else. It turned out that the script does not remember in the typing fields... how to express myself - if under share memory I press Enter - so that it is ready for the next text input - that is, I set a new line (empty new line). I close the script menu. I refresh the facebook page -> start the script menu -> go to shared memory line and the script didn't remember that I saved the bottom line. I don't know if you understood me correctly what I mean. :|

302649248-ff2baec4-5542-4d61-8c35-bc55bc90bbce

zbluebugz commented 5 months ago

when manually pressing to check for update - it immediately reverts to its default name and does not save this name that I manually set

FYI - you're using a beta copy of the code - not a production release copy.

beta copies usually have the version number in the name - this helps me with developing/testing the code.

When it is released for production, the name reverts to "FB - Clean my feeds".

Here's what my TM looks like when I'm in FB: image

Here's what my VM looks like with the version number highlighted: image

I'll let you know when I release a production copy on greasyfork and github.


Regarding blank line(s) not being saved:

zbluebugz commented 5 months ago

v4.28 is now published.

Rusenche commented 5 months ago

@zbluebugz commented 13 hours ago

  • Did you click "Save" (Запази) the changes before reloading the page?
  • FYI, when you click "Save", the script will rescan the page again - no need to reload the page.

Of course. But even with v.4.28 - saved newline is not saved in this sequence:

__ A small addition: For myself, I edited it like this: shjy

zbluebugz commented 5 months ago

I've had a quick look at the Save code and it is stripping out the blank lines when it saves the data to the database.

Is there a reason that you want to have blank lines saved?

Rusenche commented 5 months ago

The reason is that by keeping a new blank line - it's convenient for me, because it turns out that there are more and more things to write to be hidden. When I have previously saved a new empty line - I click the mouse cursor on the empty line and start writing. As it is now - if I don't see where I'm writing - it will be merged with what I wrote before. :| That's my idea.

But, if it will somehow complicate the script and the database, I won't insist. :}