mrinc / F-B-Hide-Recommendations-and-Reels

This google chrome extension hides Reels and recommendations on Facebook
MIT License
33 stars 12 forks source link

Language is not inferred correctly #134

Open red5h4d0w opened 7 months ago

red5h4d0w commented 7 months ago

I noticed that the Firefox Add-on didn't manage to remove any of the posts that I configured it to remove.

From a quick analysis, I find that the relevant code for figuring out the users language is this. However, when I run window.localStorage.getItem("fbhrar_locale") in dev tools, I get en even if my Facebook is in French.

A workaround would be to have an override for language in case language is not infered correctly.

Some (maybe) relevant background context: I am in Canada (Québec), using Firefox 124.0.2 and just downloaded the extension from the Mozilla add-on page.