Selectively Whitelist Page Parts

Discussion in 'Feature Requests (Browser Extensions)' started by randomusername, Aug 6, 2014.

  1. randomusername

    randomusername Beta Tester

    Joined:
    Aug 3, 2014
    Messages:
    163
    (taken from the beta forums)

    I'd want a "exception for this element" control in the browser overlay to "unblock" only parts of a site.
     
  2. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,898
    Thank you!

    Would be great if you post an example. The website + the part of the site you'd like to unblock.
     
  3. randomusername

    randomusername Beta Tester

    Joined:
    Aug 3, 2014
    Messages:
    163
    Example: onlinetvrecorder.com. (Admittedly you'd need an account there.) I want to "unblock" a certain div (or iframe, depending on the page) with certain ad banners but block the ad banners in all other divs.
     
  4. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,898
    Hm, I understand what you need, but I don't yet understand how to make it user-friendly.

    The second problem is that ads could be blocked by URL blocking rules (for instance, Adguard could have blocked request to an ad network server). And whitelisting this url will unblock all ads on the page, not the certain div.
     
  5. randomusername

    randomusername Beta Tester

    Joined:
    Aug 3, 2014
    Messages:
    163
    User-friendly would be a feature which allows them to just select the ads to be whitelisted by mouse. :)

    Technically, well, I don't have AdGuard's source code...
     
  6. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,898
    I think you don't need the source code to understand the second problem.

    Often there is no connection between the filter rule and the blocked element position.
    So at the moment I don't see any doable solution except creating whitelisting rules manually.
     
  7. randomusername

    randomusername Beta Tester

    Joined:
    Aug 3, 2014
    Messages:
    163
    But it should be possible to track which elements are caught with a rule, right?
     
  8. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,898
    Let me use an example.

    Ducduckgo search results:
    https://duckduckgo.com/?q=iphone+5

    If you disable Adguard on the page, you'll see the ad:
    http://screencast.com/t/QfJFK6c9xXND

    This ad is blocked by this rule:
    Code:
    ||duckduckgo.com/y.js
    
    This rule blocks the script that shows the ad:
    Code:
    https://duckduckgo.com/y.js?x=1&q=iphone%205&l=us-en&safe=1
    
    Here is the source code of this script:
    Code:
    if (nrn) nrn('a',[{"n":2,"a":"<a class=\"sponsored__sitelink\" href=\"http://r.duckduckgo.com/y.js?kh=-1&x=1&u2=http%3A%2F%2F433118.r.msn.com%2F%3Fld%3DDv7QCZLQJLKrW8cpJq9aj1NjVUCUwmsFDrM2sOfanhCgPviBVKRwcxWJQ3K8M%2DWGRYm9Wd_BEi0MAKzZYhKJba9RwsbzOi7D7KCupsM8giPlyClFo0GLofMCyRPPiA3%2Dh74YZu8uXnlK2rqaaSdOgA7VXF9Bs%26u%3Dwww.phones4u.co.uk%252fapple%252fiphone%252f5s\"><b>iPhone</b> <b>5s</b> Colour Variants</a> &nbsp;&nbsp; <a class=\"sponsored__sitelink\" href=\"http://r.duckduckgo.com/y.js?kh=-1&x=1&u2=http%3A%2F%2F433118.r.msn.com%2F%3Fld%3DDvL5d49ZBMraPXmJaM4n9R1zVUCUzKyAQxc_dFOD3xh2mtbrmHVCoIBy7HDDDeNuRp93OCB6RCrRFtIiTd28Pe4YS904wIMb5nwPbao_I_Zuohug8_97JLlNI%2Dp4bZJUzp5YiTB%2DU7ZIOMvz9x2cxwxddRr%2DQ%26u%3Dwww.phones4u.co.uk%252fapple%252fiphone%252f5s%252f16gb%2Dgold%252fcontract\"><b>iPhone</b> <b>5s</b> Upgrade Deals</a><br>Free from \u00a334.50pm with the mobile high street retailer of the year.","d":"www.Phones4u.co.uk/iPhone_5s","m":0,"s":"yahoo","p":1,"c":"http://r.duckduckgo.com/y.js?kh=-1&x=1&u2=http%3A%2F%2F433118.r.msn.com%2F%3Fld%3DDvFOlpG2jclsdNRcvoB%2DigrjVUCUxnJuP0ghK_DhUCthL1BfjSHGrzkAAZMlUgEYQluDq%2D6sa4w5UqthIMoQ61qg381yPE3ihj6p6BdMhIujKgFQZwgW%2D_l8brNQ1Z_68pOBAk5A%26u%3Dhttp%253a%252f%252f1199.xg4ken.com%252fmedia%252fredir.php%253fprof%253d13%2526camp%253d4279%2526affcode%253dkw207248%2526cid%253d5361745356%2526queryStr%253diphone%2525205%2526url%255b%255d%253dhttp%25253A%25252F%25252Fwww.phones4u.co.uk%25252Fapple%25252Fiphone%25252F5s%25253Fcid%25253DSEM_Sa_Handsets_%2D_Apple_%2D_iPhone_5%252526ksprof_id%25253D13%252526ksaffcode%25253D207248%252526ksid%25253D_kenshoo_clickid_%252526ksdevice%25253Dc","u":"http://r.duckduckgo.com/y.js?kh=-1&x=1&u2=http%3A%2F%2F433118.r.msn.com%2F%3Fld%3DDvFOlpG2jclsdNRcvoB%2DigrjVUCUxnJuP0ghK_DhUCthL1BfjSHGrzkAAZMlUgEYQluDq%2D6sa4w5UqthIMoQ61qg381yPE3ihj6p6BdMhIujKgFQZwgW%2D_l8brNQ1Z_68pOBAk5A%26u%3Dhttp%253a%252f%252f1199.xg4ken.com%252fmedia%252fredir.php%253fprof%253d13%2526camp%253d4279%2526affcode%253dkw207248%2526cid%253d5361745356%2526queryStr%253diphone%2525205%2526url%255b%255d%253dhttp%25253A%25252F%25252Fwww.phones4u.co.uk%25252Fapple%25252Fiphone%25252F5s%25253Fcid%25253DSEM_Sa_Handsets_%2D_Apple_%2D_iPhone_5%252526ksprof_id%25253D13%252526ksaffcode%25253D207248%252526ksid%25253D_kenshoo_clickid_%252526ksdevice%25253Dc","h":0,"k":0,"i":"https://s.yimg.com/pp/favicons-new/16x16_100_pKPeo0a0UX03bfKtkVKWxA.png","t":"<b>iPhone</b> <b>5s</b> now available","o":""}]);
    
    And there is not direct connection between the ad place and this script.
     
  9. randomusername

    randomusername Beta Tester

    Joined:
    Aug 3, 2014
    Messages:
    163
    Oh, I see. OK, that makes things more complicated than I thought, sorry. :(
     
  10. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,898
    No problem:) The idea is really good.

    For example some users want to whitelist ads on some sites just to help the site owners.
    I was thinking about some kind of convention allowing site owners to define ad places which user can unblock.
     
  11. randomusername

    randomusername Beta Tester

    Joined:
    Aug 3, 2014
    Messages:
    163
    Why would they join you?
     
  12. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,898
    It's just an idea I was thinking about.

    Because they are interested in ads whitelisting on their websites.

    I think that acceptable ads policy of ABP is a first step but it's not good enough.
    There're millions of web sites and it is impossible to review them all.

    So it would be great if there was a simple way for site owners to communicate with users who use ad blockers and let users decide by themselves if they want to support this website or not (and to define the level of support: whitelist all ads or part of them).

    Of course it should be a common standard used by all ad blockers.
     
  13. randomusername

    randomusername Beta Tester

    Joined:
    Aug 3, 2014
    Messages:
    163
    Good point. I'll notify the OTR dev(s) of this thread, maybe they'll communicate. :)