Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] - Event you may like hiding #14

Open
thiendt2k1 opened this issue Oct 10, 2022 · 9 comments
Open

[Request] - Event you may like hiding #14

thiendt2k1 opened this issue Oct 10, 2022 · 9 comments
Labels
enhancement New feature or request fb-cmf

Comments

@thiendt2k1
Copy link

thiendt2k1 commented Oct 10, 2022

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

@zbluebugz zbluebugz added the enhancement New feature or request label Oct 10, 2022
@zbluebugz
Copy link
Owner

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?

@thiendt2k1
Copy link
Author

First, Thanks!
Second:

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

@zbluebugz
Copy link
Owner

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 "*** ***".

@thiendt2k1
Copy link
Author

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

@zbluebugz
Copy link
Owner

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).

@thiendt2k1
Copy link
Author

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

@zbluebugz
Copy link
Owner

Thanks for the feedback.

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

@thiendt2k1
Copy link
Author

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

@zbluebugz
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fb-cmf
Projects
None yet
Development

No branches or pull requests

2 participants