AdguardTeam / AdguardFilters

AdGuard Content Blocking Filters
https://adguard.com/
GNU General Public License v3.0
3.23k stars 638 forks source link

facebook.com #162742

Closed adguard-bot closed 1 year ago

adguard-bot commented 1 year ago

Issue URL (Ads)

http://facebook.com

Comment

Username: @Jebbgrenham

Facebook feed is mostly "suggested for you" ads. Adguard does not filter any of them.

Screenshots

Screenshot 1 ![Screenshot 1](https://cdn.adguard.info/sitereports/6arwvr2k7l44os84g4ssokg0co80gggjbh79zm4vc0.png?nc=1)
Screenshot 2 ![Screenshot 2](https://cdn.adguard.info/sitereports/4zw9ok1nxt8okcsggs8wok4ww0os40wdwzdj90bn94.png?nc=1)
Screenshot 3 ![Screenshot 3](https://cdn.adguard.info/sitereports/cfz3rxjj1y8g4wkwgk4o4ss4swsk08gplvrkwgzmxc.png?nc=1)
Screenshot 4 ![Screenshot 4](https://cdn.adguard.info/sitereports/d065eo1pvagossg484kcog0wssscg4kog9bkyl0csg.png?nc=1)

System configuration

Information value
Platform: Android 28
AdGuard product: AdGuard for Android v4.2.93;4.2.93
Browser: Chrome
AdGuard mode: VPN
Filtering quality: High-quality
HTTPS filtering: enabled
Stealth mode options: Send Do-Not-Track header,
Remove X-Client-Data header from HTTP requests,
Self-destructing first-party cookies (4320),
Self-destructing third-party cookies (180)
DNS filtering: server: System
filters: https://filters.adtidy.org/android/filters/15_optimized.txt
Filters: Ad Blocking:
EasyList,
AdGuard Base,
AdGuard Mobile Ads

Social Widgets:
Fanboy's Social Blocking List,
AdGuard Social Media

Annoyances:
AdGuard Cookie Notices,
AdGuard Popups,
AdGuard Mobile App Banners,
AdGuard Other Annoyances,
AdGuard Widgets
Userscripts: https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.meta.js,
https://userscripts.adtidy.org/release/disable-amp/1.0/disable-amp.meta.js
Alex-302 commented 1 year ago

"suggested for you" are not ads. "sponsored"/"promoted" - ads

jebbgrenham commented 1 year ago

Support states they are ads and should be blocked by adguard "annoyances" filters but they are not being blocked.

Alex-302 commented 1 year ago

Is it a site or an app on your screenshot?

jebbgrenham commented 1 year ago

Chrome on android.

Alex-302 commented 1 year ago

Please test:

m.facebook.com#$?#div[data-status-bar-color] > div[data-mcomponent="MContainer"] > div[data-mcomponent="MContainer"]:has(> div[data-mcomponent="MContainer"] div[data-mcomponent="TextArea"] > .native-text > span:contains(/Suggested for you|Vorschläge für dich/)) { height: 1px !important; visibility: hidden !important; }
m.facebook.com#$?#div[data-status-bar-color] > div[data-mcomponent="MContainer"] > div[data-mcomponent="MContainer"]:has(> div[data-mcomponent="MContainer"] div[data-mcomponent="TextArea"] > .native-text > span:contains(/Suggested for you|Vorschläge für dich/)) + div[data-tti-phase] { height: 1px !important; visibility: hidden !important; }
m.facebook.com#$?#div[data-status-bar-color] > div[data-mcomponent="MContainer"] > div[data-mcomponent="MContainer"]:has(> div[data-mcomponent="MContainer"] div[data-mcomponent="TextArea"] > .native-text > span:contains(/Suggested for you|Vorschläge für dich/)) + div[data-tti-phase] + div[data-tti-phase] { height: 1px !important; visibility: hidden !important; }
m.facebook.com#$?#div[data-status-bar-color] > div[data-mcomponent="MContainer"] > div[data-mcomponent="MContainer"]:has(> div[data-mcomponent="MContainer"] div[data-mcomponent="TextArea"] > .native-text > span:contains(/Suggested for you|Vorschläge für dich/)) + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase] { height: 1px !important; visibility: hidden !important; }
m.facebook.com#$?#div[data-status-bar-color] > div[data-mcomponent="MContainer"] > div[data-mcomponent="MContainer"]:has(> div[data-mcomponent="MContainer"] div[data-mcomponent="TextArea"] > .native-text > span:contains(/Suggested for you|Vorschläge für dich/)) + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase] { height: 1px !important; visibility: hidden !important; }
m.facebook.com#$?#div[data-status-bar-color] > div[data-mcomponent="MContainer"] > div[data-mcomponent="MContainer"]:has(> div[data-mcomponent="MContainer"] div[data-mcomponent="TextArea"] > .native-text > span:contains(/Suggested for you|Vorschläge für dich/)) + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase][data-actual-height="26"] { height: 1px !important; visibility: hidden !important; }
m.facebook.com#$?#div[data-status-bar-color] > div[data-mcomponent="MContainer"] > div[data-mcomponent="MContainer"]:has(> div[data-mcomponent="MContainer"] div[data-mcomponent="TextArea"] > .native-text > span:contains(/Suggested for you|Vorschläge für dich/)) + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase] + div[data-tti-phase][data-actual-height] + div[data-tti-phase][data-actual-height^="4"]:has(> div[data-action-id] > div[class] > button) { height: 1px !important; visibility: hidden !important; }
jebbgrenham commented 1 year ago

I know this is an unrelated bug, but I can't add custom filters to adguard on android. The local file path is not accepted. Error is "Enter a valid URL or file path" despite the path being valid. Once I sort out that bug, I'll try your updated filter.

Alex-302 commented 1 year ago

Just copy-paste to user filter.

jebbgrenham commented 1 year ago

I'm on android, the only options for user scripts are URL or local file.

Alex-302 commented 1 year ago

Protection => Ad blocking => User rules => 3 dots menu => Open rules editor and paste the rules.

jebbgrenham commented 1 year ago

That works, and the filter works!