No longer blocking Facebook suggested posts

Gary Quiring

New Member
Starting today, my Facebook is riddled with these inline timeline posts that start with "Suggested post" and XYZ likes this... It's all ads. Adguard always did a great job removing them. It's no longer blocking any of them.
 

Blaz

Moderator & Translator
Staff member
Moderator
Just fixed a "Sponsored" post over at github (update will be available in 2-3 hours). Didn't see any "likes this" though.
Please send a report using "Submit a complaint about this website" in extension's menu.

Please note Facebook is using a lot of different elements to define a sponsored post. They even blocked contextmenu on that "Sponsored" text this time and put parts of the words in different elements, so when one searches for the text in code, it won't show up.
 
Last edited:

Gary Quiring

New Member
I tried submitting a report and it locked up twice while uploading the photo.

This is what I am seeing with XYZ likes this ....FacebookAd.PNG
 

Blaz

Moderator & Translator
Staff member
Moderator
Not sure if that like part will be removed with the new rule too, you have to check later.
 

Wittier

New Member
Windows 10 10.0.17133
Chrome
Adguard Chrome Extension, that I've been using for years.

Same problem just started yesterday, Apr 17.

Normally, AdGuard blocks nearly all ads on facebook.com in Chrome. Yesterday, I started seeing a lot of "suggested post" ads in the facebook News Feed.

I tried submitting several of these ads to create filters for them. That did not work.

Something has changed with AdGuard or in how Facebook serves these ads.

I tried to troubleshoot, tried to update filters, no luck.
 

Boo Berry

Moderator + Beta Tester
Moderator
Looking at what's being said here: https://greasyfork.org/en/forum/discussion/36738/x
Simple fix. They removed a div, so the selector needs to be changed;

'div[id^=feed_subtitle] > span > div > div > a > div'
to
'div[id^=feed_subtitle] > span > div > a > div'
Hopefully that'll help with fixing that.

Something has changed with AdGuard or in how Facebook serves these ads.
Facebook changed/added/fixed stuff (they finally fixed the Chrome lag when scrolling down the recent posts news feed). It broke the Facebook Unsponsored userscript I use through AG for Windows as an extension to deal with these, but it's been since updated for this. I highly recommend using this userscript through AG for Windows or a userscript manager like Tampermonkey/Greasemonkey.
 

Wittier

New Member
Looking at what's being said here: https://greasyfork.org/en/forum/discussion/36738/x


Hopefully that'll help with fixing that.



Facebook changed/added/fixed stuff (they finally fixed the Chrome lag when scrolling down the recent posts news feed). It broke the Facebook Unsponsored userscript I use through AG for Windows as an extension to deal with these, but it's been since updated for this. I highly recommend using this userscript through AG for Windows or a userscript manager like Tampermonkey/Greasemonkey.

Thanks for the reply. Your knowledge of AG is a lot more deep than mine is.

Big Picture questions: Are you saying that anyone using facebook on Chrome on Windows really needs to use AG for Windows rather than the Chrome Extension to block the most common ads on the most popular website, facebook?

And are you saying that each user of AdGuard Chrome Extension should go in and edit filter code?
 

Boo Berry

Moderator + Beta Tester
Moderator
1. No, the browser extensions work pretty well by themselves. I mentioned AG for Windows because it has built-in support for userscripts, like Facebook Unsponsored, which is a userscript that removes Facebook's ads (also supports multiple localizations and regions for Facebook). It's worth noting that this can also be accomplished by using a userscript extension like Tampermonkey or Greasemonkey alongside a adblocking browser extension, if desired (this is what I do on Linux).

2. Also no. The quote from Greasy Fork that I posted above is meant for the filter devs to help them know what changed so new filters can be created, if necessary.
 

Wittier

New Member
1. No, the browser extensions work pretty well by themselves. I mentioned AG for Windows because it has built-in support for userscripts, like Facebook Unsponsored, which is a userscript that removes Facebook's ads (also supports multiple languages and regions). It's worth noting that this can also be accomplished by using a userscript extension like Tampermonkey or Greasemonkey, if desired.

2. Also no. The quote from Greasy Fork that I posted above is meant for the filter devs to help them know what changed so new filters can be created, if necessary.
Thanks for the reply. How do we get this thread to be seen by the filter devs?
 

Adam

Filters Developer
Staff member
Moderator
Could you please check this rule:
Code:
facebook.com##div[id^="substream_"] > div > div[id] div[id^="hyperfeed_story_id_"]:has(div._5pcp._5lel > span > div > a[href="#"])
 

Wittier

New Member
@Blaz is one of the filter devs, so he knows already. @Alex302 is another filter dev.

I can confirm (with the filters updated) that sponsored posts still appear on Facebook.

@Blaz and/or @Alex302 here's a diff of the Facebook Unsponsored userscript with the updated selectors used for Facebook's sponsored posts as of right now;

https://greasyfork.org/en/scripts/22210-facebook-unsponsored/diff?v1=265776&v2=250503
Tweeted

https://twitter.com/CollarTen/status/986596971975725057
 

Boo Berry

Moderator + Beta Tester
Moderator
Try adding the rule @Adam posted above to the user filter in the AG browser extension settings. I'm using it and it looks to be working.
 

Blaz

Moderator & Translator
Staff member
Moderator
It seems Facebook uses a different selector at the end and that is why the rule I added yesterday is not working for everyone. A new rule will be added shortly.
 

Boo Berry

Moderator + Beta Tester
Moderator
Looks like it's been committed to the English filter. Wait an hour or two, then open the AG browser extension's settings and click on Check for filter updates. After the filters update the sponsored posts *should* gone then. :)
 
Top