Giter VIP home page Giter VIP logo

mrinc / f-b-hide-recommendations-and-reels Goto Github PK

View Code? Open in Web Editor NEW
30.0 3.0 12.0 883 KB

This google chrome extension hides Reels and recommendations on Facebook

License: MIT License

CSS 3.46% JavaScript 4.26% Shell 4.02% HTML 0.35% TypeScript 87.37% Dockerfile 0.55%
chrome chrome-extension chrome-extensions chrome-plugin facebook firefox firefox-addon firefox-addons firefox-extension firefox-extensions

f-b-hide-recommendations-and-reels's Introduction

This extension hides Reels and recommendations on Facebook.com

This extension looks for certain keys in Facebooks feed and hides elements that contain Reels and short videos and Suggested for you.

It places a small banner in the items place to let you know what was hidden.

Chrome web store: https://chrome.google.com/webstore/detail/mgfdapnedjhfmhcaglenpnjaocjpfplj/
Firefox web store: https://addons.mozilla.org/en-US/firefox/addon/fb-hide-recomm-and-reels/

** Note chrome extension has been republished under a new ID

Adding a new language

Add your language via editing the langs.ts file with your language /src/content/langs.ts
Make a pull request back into master and we'll check and merge it

Building package

Run build.sh and it will compile the extensions into the dist/packed dir.
Requirements: docker (v24+), docker compose (v1.29+)
Build is handled inside a container for isolation and consistency.

Sponsor/Support

You can support this plugins development with liberapay

Liberapay patrons

f-b-hide-recommendations-and-reels's People

Contributors

dependabot[bot] avatar generalmine avatar mrinc avatar pktiuk avatar wederbrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

f-b-hide-recommendations-and-reels's Issues

question regarding loading

Hi! First of all, great extension! thank you for doing it, and I really really appreciate your commitment (it's hard to maintain and respond to issues). I have a question, in my chrome there is still delay, in fact, 2:

  1. new page is loaded, I see reels block which disappears a little bit later (all settings are set to prevent this kind of thing). I suspect that this one might be due to unfinished loading of page. I wonder if anything can be made in this case. can extension not show facebook page at all before the reels are not hidden? Im ok to wait with blank screen some time.
  2. when I scroll facebook there are reels blocks which are not hidden but they become hidden in 2-3 seconds.

Facebook starting to block extension on landing page

Looks like the Meta overlords are not happy about the way this extension is loading on the landing page, as of 2022-11-17.

image

The issue does not happen when I click the home link after already on the landing page (seems more like a lazy load there), so I'm thinking maybe it's worth re-architecting the main behavior to allow reels to load initially.

Here are the client side logs:

JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58 ErrorUtils caught an error:

CSR upgrades included unknown rsrcIndex 300 (client rev: 1006624950, cohort: HYP:comet_plat_default_pkg).

Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs.
errorListener @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
reportNormalizedError @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
b.$1 @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
b.mustfix @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
handlePayload @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:170
r.guard.name @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:215
applyWithGuard @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
c @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
H @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
C @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
E @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
(anonymous) @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
(anonymous) @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:223
g.unstable_runWithPriority @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:219
(anonymous) @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:223
applyWithGuard @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
c @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
Q @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:219
P @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:219
Y @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:219
DevTools failed to load source map: Could not load content for chrome-extension://bmnlcjabgnpnenekpadlanbbkooimhnj/browser-polyfill.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
www.facebook.com/:1 Error handling response: TypeError: self.processResponse is not a function
    at chrome-extension://cmkdbmfndkfgebldhnkbfhlneefdaaip/js/notification.js:154:10
content.js:280 Known CC Config {}[[Prototype]]: Object
content.js:31 contentCleaner:v1.20.8 undefined
content.js:87 cannot find facebook feed
contentCleaner @ content.js:87
(anonymous) @ content.js:285
IndexedDB (async)
a @ _zjY6BiiSTSgBm1TZslV_e6ycoIF9bdAPiAEtarD3bs2bsCVUNbIX3Gls1rTnrugYnUQNj3cV2_tLeaZADiavI-4AO84-a_vv6v.js?_nc_x=iUND1VN9hLD:139
(anonymous) @ _zjY6BiiSTSgBm1TZslV_e6ycoIF9bdAPiAEtarD3bs2bsCVUNbIX3Gls1rTnrugYnUQNj3cV2_tLeaZADiavI-4AO84-a_vv6v.js?_nc_x=iUND1VN9hLD:140
Promise.then (async)
(anonymous) @ _zjY6BiiSTSgBm1TZslV_e6ycoIF9bdAPiAEtarD3bs2bsCVUNbIX3Gls1rTnrugYnUQNj3cV2_tLeaZADiavI-4AO84-a_vv6v.js?_nc_x=iUND1VN9hLD:140
H @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
C @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
E @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
(anonymous) @ w7GK_DY8I_g.js?_nc_x=iUND1VN9hLD:31
H @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
applyWithGuard @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:58
H @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:46
C @ JFi2f1xHgZ4.js?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fxrNWUyTU3LPs5b77DgJTuXlC2pXc-buPNEADH2yS7g06vUKDC5-KS8gzrVHQO8CKYW2oCHtPR9VUIyfVtp55HfXW__mMnMkHkfZeeYB.js?_nc_x=iUND1VN9hLD:961
an @ gIXUmByBKwFmuypht4z2Pfoad-1ZD-Gfuy3lAy7bTQv9caxjid0ij1MeviZxtuPF7kOwb5qCV0cf3ceEz2vKENA-aDeVv9FFDTHO_39k11ECeA10IdhAZhs3qyRl5EfOBszQq881nNFpaneKHmXnJiBgUKnJSvOXl8cWrNh-W2TJpQ92T3RruP0w0hUOTgAy18ROQ5T-GqPQfxrNWUyTU3LPs5b77DgJTuXlC2pXc-buPNEADH2yS7g06vUKDC5-KS8gzrVHQO8CKYW2oCHtPR9VUIyfVtp55HfXW__mMnMkHkfZeeYB.js?_nc_x=iUND1VN9hLD:961
Nm @ gIXUmByBKwFmuypht4z2Pfoad-1ZD-Gfuy3lAy7bTQv9caxjid0ij1MeviZxtuPF7kOwb5qCV0cf3ceEz2vKENA-aDeVv9FFDTHO_39k11ECeA10IdhAZhs3qyRl5EfOBszQq881nNFpaneKHmXnJiBgUKnJSvOXl8cWrNh-W2TJpQ92T3RruP0w0hUOTgAy18ROQ5T-GqPQfxrNWUyTU3LPs5b77DgJTuXlC2pXc-buPNEADH2yS7g06vUKDC5-KS8gzrVHQO8CKYW2oCHtPR9VUIyfVtp55HfXW__mMnMkHkfZeeYB.js?_nc_x=iUND1VN9hLD:961
Q @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:219
P @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:219
Y @ JFi2f1xHgZ4.js?_nc_x=iUND1VN9hLD:219
VM433:14 

Firefox?

This only works with Chrome, right? What would it take to add Firefox support?

F-B-Hide-Recommendations-and-Reels

The extension is not stopping the appalling reels, and by returning to the "Reset configuration" menu, the red "reset" button does not work and save the choices, despite it being clickable.

Polish laguage support

Doesn't work in polish language
Sponsored section is marked with: "Sponsorowane"
Reels: "Rolki i krótkie filmy"
Suggestions: "Proponowana dla Ciebie"

Edit: I see that you store config booleans. Maybe the easiest would be to allow user set in config those strings to any value. That way your extension would support any language

No longer working

This plug in worked fantastically to block Facebook suggested content, but ceased working today. Sometimes when this happens it will work again if I refresh the page, but this has also not solved the issue. Over half of my feed is currently reels and suggested content.

"Follow" suggestions

Thank you for maintaining this plugin - it really is nice to have!

I've noticed a new type of FB pushing pages and adverts and annoyances.

These aren't tagged as "suggestions" but obviously they are suggestions of pages to "follow".

I understand this might be quite agressive setting for some people, but I get plenty of suggestion time while on mobile so I don't feel I am missing out at all on desktop!!

Here is a screenshot with the menu inside too, incase you can classify it as a different type.

image

Feautures not working

I have installed the extension recently.But seems like it's not working.Not sure why.

Build & Release updates

Update build and release process for changelog version references.
Release proc runs twice with pr and release proc creates a new version.

Basically overhaul the build/dev/release flow for this project.

Firefox: Extensions stops working after leaving site/no save button in configuration pop-up

Hi!

I'm using the latest version on Firefox. I get the initial configuration wizard, save my configuration and it works, but the next time I open Facebook, everything looks as usual. When I open the configuration pop-up, the options are reset and the save button doesn't show up, either.

Laden fehlgeschlagen für das <script> mit der Quelle "moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/tailwindcss.js". popup.html:7:31
Uncaught TypeError: r.storage.sync.get(...) is undefined
initPopupConfig moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
initPopupConfig moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
initPopupHome moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
onload moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
EventHandlerNonNull* moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
moz-extension://851f3a02-2a62-4873-8128-fa10783c613f/popup.js:1
popup.js:1:30928

That's the output I get in the console. I hope that helps.

Thanks for your work!

Timeline not loading after the first post

Hi !

It's me again !

This time, the posts on the Facebook's timeline just don't seem to load. The first post is working just fine, but after this one it's not loading anymore :

image

The console displays errors from ReactJS :

image
image

Those errors aren't showing on the console when the extension is deactivated.

On the far left of the screen, I also have text displaying :

image

When I'm looking at the HTML, those elements are in this div (which has a lot more of "__fb-light-mode" divs) :

image

The console does not seem to show any more errors. The script seems to be working :

image

I must say that I do get LOTS of ads on Facebook. Like, a really big number of ads between posts I want to see. Maybe this is related in some way, maybe this is some edge case ?

Thank you so much for your work again ! 🙏

Version : 1.26.28

for japanese

ja: {
// Japanese
newsFeedPosts: "News Feed posts",
reelsBlock: "リールとショート動画",
commentedOn: " commented on a post from ",
peopleKnow: "People You May Know",
suggested: ">Suggested for you<",
},

Not blocking suggested posts

When Facebook first opens the add-on works, and as I scroll through the first few posts I can see it blocking posts from the feed. However, after Facebook loads the second batch of posts it stops blocking unwanted content. Also, if I have the "Hide all Blocks" setting turned off the elements that are blocked are not reduced in size like they were previously, so I still have to scroll through them.

Screenshot 2023-12-25 210148
Screenshot 2023-12-25 210500
Screenshot 2023-12-25 210809

"Suggested for you" section still appears

I've configured the plugin to hide "Suggested for you" sections yet they still appear in my feed.

In fact that's all that's in my feed. The first 10 things are all just "Suggested for you".

BUG: Navigation looses control

When navigation around FB occurs, the key holder for the feed is lost.
I think it also isn't added again once lost. So this needs to be re-checked and re-added where need be.

Also do a URL check to make sure we completely suspend monitoring when not on the feed URL.

Allow supporting more languages

It would be good to have support for more languages, or at least create a simple guide for contributors how to add new language and create PR.
(You could also use weblate for this purpose)

Unable to find the feed elements - extension doesn't work.

Hi !

I just downloaded the extension, but it is unable to find the feed elements on my timeline. I tried to send the data, but it kept on "gathering data" for a long time and I think it didn't work.

I have Facebook in french, I'm on Windows 10 (Version 21H2 (Build 19044.2846)) and on Vivaldi (5.6.2867.62) (Chromium browser). Here's a screenshot of the console :
image

Thank you.

Delay in publishing

*** Just a note there is a delay in publishing the latest version.

Should be up in the next week

Does not work in the new "Feeds (Most Recent)" section of Facebook.

Facebook has changed its site (yet again), and the Most Recent section, organized by, well, most recent posts, has moved to a new page that loads. Reels, etc. show up on this page, and the Extension fails with an error. I was also unable to send the diagnostic data, so it prompted me to log an issue this way.

Whiteout area?

Is it possible to make back the whiteout area to be a small line as before?
Like in the screenshot below, it used to be just a line (like the green one), but now it's the whole full-page post there.
Screenshot_2

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.