facebook-clean-my-feeds icon indicating copy to clipboard operation
facebook-clean-my-feeds copied to clipboard

[Request] - Event you may like hiding

Open thiendt2k1 opened this issue 3 years ago • 9 comments

I'd like the option to hide "event you may like" section, the HTML is below image HTML of the section: https://anotepad.com/notes/jsgpr33m My gratitude for your efforts

thiendt2k1 avatar Oct 10 '22 09:10 thiendt2k1

Thanks for the positive feedback :-)

Will try and fit this request into the next release.

Is "Events you may like" showing up in the main News Feed? Groups Feed? Events feed? Other?

If I'm not able to get this feature to show up in my FB account, would you be willing to test the next version before I publish it?

zbluebugz avatar Oct 10 '22 12:10 zbluebugz

First, Thanks! Second:

  • It shows in my main newfeed
  • Sure thing, i test new feature for Social Fixer all the time

thiendt2k1 avatar Oct 10 '22 13:10 thiendt2k1

Can you test the following code for me, please.

In FB, scroll down until you see the "Events you may like" box.

Then in the DevTools window, choose the "Console" tab and run the following code.

(function testEventRules() {
    let container = 'span[id="ssrb_feed_start"] ~ * h3 ~ div';
    let branch = 'div:nth-of-type(2) > div > div >  h3 > span';

    let results = '';
    let queryHit = false;

    results = Array.from(document.querySelectorAll(container + ' ' + branch));
    if (results.length > 0) {
        results.forEach(result => {
            if (result.children.length === 0) {
                console.info('*** *** Query #1 works *** ***');
                queryHit = true;
            }
        });
    }

    results = Array.from(document.querySelectorAll(container + ' > ' + branch));
    if (results.length > 0) {
        results.forEach(result => {
            if (result.children.length === 0) {
                console.info('*** *** Query #2 works *** ***');
                queryHit = true;
            }
        });
    }

    if (queryHit === false) {
        console.info('*** *** The Queries did not find a matching structure *** ***')
    }
})();

Copy the results from the console - the results will show up in the console's "Info" tab and prefixed with "*** ***".

zbluebugz avatar Oct 10 '22 22:10 zbluebugz

Sorry for the late reply but it disappear after 2 or 3 times showing yesterday, so i haven't been able to test, will send the result back once the "event" showing again image

thiendt2k1 avatar Oct 11 '22 10:10 thiendt2k1

No worries - take your time.

I had detection code for it, but dropped it as I hadn't seen "Event you may like" feature for quite some time.

I have added new detection code (thanks for supplying the sample HTML structure) into the next version and will wait until I hear from you on which rule(s) worked.

P.S. I haven't figured out how to make this feature show up for me, hence me not able to test the new detection code (old code won't work due to change in HTML structure).

zbluebugz avatar Oct 11 '22 12:10 zbluebugz

it's over a month now and i got my first event post, and it says that the first one match image

thiendt2k1 avatar Nov 15 '22 17:11 thiendt2k1

Thanks for the feedback.

Does the latest Clean My Feeds' (v4.11) script detect "Events you may like"?

zbluebugz avatar Nov 15 '22 19:11 zbluebugz

and today it's gone again :) these days fb is somehow trying to screw with my feed very often, 1 day it's event you may like, another is image text, and now it's back to normal 😑 Will reply when i see it again P/s: i was using 4.10 fix for performance in #20, and disable the official version at the time, so i have no idea if it worked or not

thiendt2k1 avatar Nov 16 '22 03:11 thiendt2k1

I don't see "Event You May Like" very often either ...

The "Event You May Like" detection code is the same in both v4.10 and v4.11.

zbluebugz avatar Nov 16 '22 10:11 zbluebugz