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

Feature request: create a vanilla version without GreaseMonkey #66

Open rignaneseleo opened 2 months ago

rignaneseleo commented 2 months ago

Hi, I'm the developer of SlimSocial for Facebook, an open-source app that lets users browse Facebook without granting permissions to Meta: https://github.com/rignaneseleo/SlimSocial-for-Facebook

I'm a big fan of your work! I'm constantly looking for new ways to enhance the SlimSocial experience by injecting user-requested scripts into the app's webview. Some popular requests include features like increased space between posts and centered text alignment.

Many users have expressed a strong desire for ad blocking functionality within SlimSocial. I had it but Fb recently changed the HTML so now it doesn't work anymore: https://github.com/rignaneseleo/SlimSocial-for-Facebook/blob/49525159947e9aa49234212650bfaeec3ff2004c/SlimSocial_for_Facebook/lib/utils/js.dart#L20

While I appreciate your latest code update, it appears to rely heavily on GreaseMonkey, which unfortunately isn't compatible with my environment.

My understanding is that Greasemonkey primarily handles user interface elements and data storage. Therefore, I'd like to propose a feature request: separating the Greasemonkey-specific functionality from the core CSS and Javascript parts of your ad-blocking script. This would allow users like myself to directly integrate the ad-blocking logic into SlimSocial, providing a seamless ad-free experience for thousands of daily users.

Thank you for your time and consideration!

zbluebugz commented 2 months ago

Hi.

SlimSocial appears to be designed for the mobile rendition of Facebook, while FB-CMF primarily targets the desktop version. The distinction in HTML structure between these versions means that FB-CMF cannot deal with mobile version of FB (m.facebook & mbasic.facebook.com) - only the desktop version of FB (facebook.com, www.facebook.com, web.facebook.com).

As for the dependency on GM/TM:

FYI - FB-CMF is able work on mobile devices - requires the following:

I've been asked a few users to create a mobile version of FB-CMF userscript and that is something I plan to do soon.