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

After updating to v4.23 I get reels and short videos & suggested groups on my feed #41

Closed lascetic closed 10 months ago

lascetic commented 10 months ago

I tried cleaning cookies and cache and imported again my cmf settings that has reels and videos disabled and suggested groups also disabled. However, cmf is not blocking them. The previous version 4.22 was blocking them but was not blocking the stories.

I have Firefox 116.0.3 cmf v4.23 Firemonkey 2.72 I'm currently in UK

Meanwhile I reverted back to v4.22 cause I'd rather have stories showing than reels, videos and groups, until it is fixed.

Many thanks for providing this script.

zbluebugz commented 10 months ago

Thanks for the feedback.

Will compare v4.22 with v4.23 and figure out why 4.23 isn't working as expected.

zbluebugz commented 10 months ago

Can you try/test version 4.24-beta-3, please.

lascetic commented 10 months ago

Can you try/test version 4.24-beta-3, please.

It doesn't work and "people you may know" also appear apart form the others I mentioned for v4.23.

EDIT: enabling both 4.22 and 4.24b at the same time seems to block them, if that's of any help.

zbluebugz commented 10 months ago

Thanks for the feedback.

Just to clarify:

4.22 isn't hiding the "Stories" and is hiding the other items.

4.23 is hiding the "Stories", but not "Reels and short videos" and "Suggested Groups"

4.24b3 is hiding "Stories", but not "People you may know"

Using both 4.22 and 4.24b3 are hiding the relevant items ...

Will review 4.22 and 4.24b3 code and figure something out.

lascetic commented 10 months ago

Yeah that's about right. But also, 4.24b3 is hiding "Stories", but not "People you may know", "Reels and short videos" and "Suggested Groups" So, in a way it works worse than 4.23 Thanks for looking into it.

zbluebugz commented 10 months ago

Hmm, looks like their news-feed query for posts aren't quite right.

I have another beta version nearly ready - just waiting for fb to show me a "People you may know" post. If I don't see one in the next day or two, I might need you to test it.

In the meantime, would you be able to run the following Javascript code snippet in your browser's DevTools console panel when you visit the FB news-feed page?

It will try various queries to get a collection of news-feed posts and report back the number of posts it found for each query.

(function() {
    const selectors = {
        September2023: 'h3[dir="auto"] + div > div.x1lliihq, h2[dir="auto"] + div > div.x1lliihq',
        August2023: 'h3[dir="auto"] ~ div > div.x1lliihq, h2[dir="auto"] ~ div > div.x1lliihq',
        July2023: 'h3[dir="auto"] ~ div > div > div div.x1yztbdb:not([role]), h2[dir="auto"] ~ div > div > div div.x1yztbdb:not([role])',
        February2023: 'h3[dir="auto"] ~ div:not([class]) > div[class], h2[dir="auto"] ~ div:not([class]) > div[class]',
        December2022: 'span[id="ssrb_feed_start"] ~ div > div div[data-pagelet]',
        October2022: 'h3[dir="auto"] ~ div:not([class]) > div[class] > div',
        Older: 'span[id="ssrb_feed_start"] ~ div > h3 ~ div'
    };
    function tryQuery(queryName) {
        const elements = document.querySelectorAll(selectors[queryName]);
        return `${queryName} queries found ${elements.length} posts`;
    }
    const results = Object.keys(selectors).map(queryName => tryQuery(queryName));
    console.log('fb-cmf - various news feed posts queries results:\n' +  results.join('\n'));
})();
lascetic commented 10 months ago

I'm not sure if I did the right thing. That's with v4.22 and v.24b both enabled. fb-cmf - various news feed posts queries results: September2023 queries found 1 posts August2023 queries found 1 posts July2023 queries found 1 posts February2023 queries found 3 posts December2022 queries found 0 posts October2022 queries found 2 posts Older queries found 0 posts

zbluebugz commented 10 months ago

Yes, you've done it right. Those results are quite interesting (well, to me!).

Are you able to try again, but scroll down a few posts before running the above code snippet?

nb: You can leave the v4.22 & v4.24b enabled.

lascetic commented 10 months ago

fb-cmf - various news feed posts queries results: September2023 queries found 10 posts August2023 queries found 10 posts July2023 queries found 11 posts February2023 queries found 11 posts December2022 queries found 0 posts October2022 queries found 0 posts Older queries found 0 posts

zbluebugz commented 10 months ago

Can you try/test version 4.24-beta-5, please.

lascetic commented 10 months ago

Can you try/test version 4.24-beta-5, please.

It seems to work fine. Many thanks.

zbluebugz commented 10 months ago

Thanks for the feedback - muchly appreciated.

Q: Are you seeing this at the top of your news feed? (I think it is a new feature)

image

zbluebugz commented 10 months ago

Version 4.24 now published.