zbluebugz / facebook-clean-my-feeds

Clean up Facebook feeds by hiding sponsored, suggestions and other posts based on keywords.
GNU General Public License v3.0
114 stars 13 forks source link

Sponsored posts back (with solution) #17

Closed KammererTob closed 1 year ago

KammererTob commented 1 year ago

Seems like Facebook once again changed the structure a bit. I've adapted my rule a bit (which is based on the one generated with the script here) and it seems to work again:

Old filter: facebook.com##span[id="ssrb_feed_start"] ~ * h3 ~ div > div:not([class]) span[id] > span > span > a[href="#"] span > span:has( > svg > use[*|href]:not([href])):matches-css(width:/^(55|56|57|58)(.|p)/i):upward(span[id="ssrb_feed_start"] ~ * h3 ~ div):style(width:0 !important; height:0 !important;)

New filter: facebook.com##span[id="ssrb_feed_start"] ~ * h3 ~ div > div:not([class]) span[id] > span > span > a[href="#"] span > span[class]:has(svg > use[*|href]:not([href])):matches-css(width:/^(55|56|57|58)(.|p)/i):upward(span[id="ssrb_feed_start"] ~ * h3 ~ div):style(width:0 !important; height:0 !important;)

The only difference is in this part span[class]:has(svg > use[*|href]:not([href]))

zbluebugz commented 1 year ago

Thanks for the heads up.

Code has been tweaked as per suggestion.