Skip to content

webdevsk/FB-Mobile-Clean-my-feeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation


sweeper logo

FB Mobile - Clean my feeds (UserScript)

Greasy Fork


Hides Suggested and Unwanted posts from Facebook Mobile feed. Get a clean Newsfeeds with posts only from your friends, pages and groups you follow.

⚠️ Works on Android Only

Table of contents

Removes

  • Suggested for you
  • Sponsored
  • Unlabeled posts containing "Follow" button
  • Unlabeled posts containing "Join" button

Facebook has an enhanced Mobile version of facebook which only works on Chromium browsers. The browsing experience is not as good as the App you are used to. It shows low quality photos and videos. But this is all we got that we can inject a script into.

ℹ️ So keep the original App installed and use it only for leisure browsing.

Languages Supported

  • English
  • বাংলা

⚠️ Still unstable. Works best on English

You can contribute by adding more languages

How to use

  1. Find an Android phone somewhere.
  2. Install Kiwi Browser from PlayStore.
    • Facebook enhanced version won't load on Firefox based browsers.
    • Use any Chromium based browser that supports extensions.
  3. Launch Kiwi Browser then Install the Violentmonkey extension from Chrome Web Store.
    • You can try other similiar extensions but I haven't tried them myself.
  4. (Optional) Install uBlock Origin extension.
    • Not required for this script but will improve your overall browsing experience by a mile.
  5. Head over to this link and Press Install and Confirm installation: https://greasyfork.org/en/scripts/479868-fb-mobile-clean-my-feeds
  6. Browse https://m.facebook.com/ without all the trash.

Want to use it like an App?

  1. Open https://m.facebook.com/
  2. Press the Kiwi Browser 3 dot menu
  3. Press Add to Homescreen
  4. Set your preferred Label and press Add
  5. Find it in your Android Home screen

Known issues (Must Read)

  • Jitters when scrolling
    • You actually scroll faster than you think. So new posts get added pretty frequently. While the execution of the script isn't slow, shrinking of unwanted posts causes constant Page height shifts. You can find learn more about it inside the script.
  • Blank Posts when coming back to NewsFeed
  • Firefox based browsers not supported
    • The enhanced version of m.facebook only loads on Chromium browsers. Nothing I can do about it for now.
  • Api rate limit ⚠️Please scroll slowly
    • After a while they keep pushing hundreds of Suggested posts in a row. As you keep scrolling faster than usual, it is possible to hit Api rate limit. Or in general term: they put a timer between each post requests and you asked for posts before the timer ended
  • Doesn't work when coming back after a break
    • Instead of doing the "Pull down to refresh", press the 3 dot menu and press Refresh there.

How it works

graph TD;
A[DOM Loads]-->B[Waits for new posts using Mutation Observer];
B-->C[Searches through new posts]
C-->|Regular Posts| D[Shown]
C-->|Unwanted Posts| E[Hidden]

⭐ If you like this project a Star would be nice.

⭐ You can request for new filters or submit issues here: Github/issues

⭐ Want to contribute? Fork this repo and create a pull request here: Github/pulls

For PC browsers, use this instead: https://github.com/zbluebugz/facebook-clean-my-feeds