WesleyBranton / Like-Hider

This browser extension hides likes and reactions from appearing in your Facebook notifications.
https://addons.mozilla.org/firefox/addon/like-hider/
Mozilla Public License 2.0
5 stars 1 forks source link

Posts with location tags are labelled as sponsored posts #28

Closed WesleyBranton closed 3 years ago

WesleyBranton commented 3 years ago

To fix a previous issue with the CSS selector for the better sponsors feature, the CSS selector was changed to highlight anything in the timestamp section of a post that does not have a number in it. The issue is that location tags also appear in the timestamp section and do not typically have a number.

It looks like to get around this issue, the code to detect the link href property needs to be added back again, as Facebook appears to be populating those links when the post is loaded, not when the user hovers the link like the sponsored label, which was previously the issue with the CSS code.