Cosmetic filtering in iframes [Google AMP]

gotitbro

Member
Hey guys,
I wanted to know if cosmetic filtering inside iframes is supported by Adguard for iOS or Adguard for Android. I am asking this as a lot of sites seem to be adopting Google AMP and the AMP pages in the Google Search results page when clicked upon overlay the search results page as an iframe.

In the iframes (AMP pages) a lot of space is taken up by blank adboxes and these don't seem to be hidden (maybe due to the AMP page using a google.com URL), also some ads also appear in these iframes.

SS:
https://i.imgur.com/QG58k3M.png (Blank ad space in an AMP page)
https://i.imgur.com/IzZTPIH.png (Ad in an AMP page)


Error URLs (Corresponding to the above screenshots respectively):
https://www.google.com/amp/m.ndtv.com/tamil-nadu-news/sasikala-convicted-in-corruption-case-by-supreme-court-1659220?amp=1&akamai-rum=off

https://www.google.com/amp/m.rajasthanpatrika.patrika.com/amp-story/sawai-madhopur/khud-dekho-gesh-km-to-nhi-he-2482430.html
 

vasily_bagirov

Administrator
Staff member
Administrator
@gotitbro
On Android, Adguard does support cosmetic filtering inside some iframes (depending on iframe size). Same for iOS - if you are talking about Safari Content blocker (of course there are no cosmetic rules for DNS blocking).

Do you still see ads there? If so, try switching to 'High-quality' filtering mode (if you are on Android).
 

gotitbro

Member
@vasily_bagirov I just checked with the Adguard Browser Extension for Chrome, it does seem to support cosmetic filtering inside iframes. I will further check on Android and iOS, I might have been seeing some ad spaces and and ads due to only generic filters being applied (as noted earlier these AMP pages use the google.com URL).
 

vasily_bagirov

Administrator
Staff member
Administrator
@gotitbro I might have been wrong about iOS - cosmetic rules are not supported in iframes there, only specific domain rules. It should work on Android, though.
 

avatar

Administrator
Staff member
Administrator
There are some exception rules for ndtv.com, which may cause this behavior:
Code:
@@||ndtv.com^$generichide
@@||ndtv.com^$script,~third-party
 

gotitbro

Member
@avatar As I said before the domain used for loading these URLs is google.com, having a generic hide exception filter does not affect anything here (also as I posted above the cosmetic filtering works with the browser extension).

I am still to test cosmetic filtering inside iframes on Android and iOS, will report the results when done.
 

avatar

Administrator
Staff member
Administrator
@avatar As I said before the domain used for loading these URLs is google.com, having a generic hide exception filter does not affect anything here (also as I posted above the cosmetic filtering works with the browser extension).
It seems that Content Blocking API uses main document's host name instead of the frame's host name.
 
Top