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

Feature request: create a vanilla version without GreaseMonkey #66

Open
rignaneseleo opened this issue Apr 20, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request fb-cmf

Comments

@rignaneseleo
Copy link

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
Copy link
Owner

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:

  • FB-CMF relies on TM to inject the userscript code at a certain time and a couple of small things.
  • Data storage is handled by IDB-Keyval library.
  • FB-CMF's UI is handled by it's own code.

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

  • Browser allowing addons/extensions (e.g. Firefox)
  • Userscript manager (e.g. Tampermonkey)
  • FB-CMF's userscript
  • Viewing FB in "Desktop mode"

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.

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