News for hackers. Stuff that matters.
Re:The next version of Safari will let users block ads on iP... by facepalm on Wednesday June 10, 2015 @07:39PM (#9696398)
Can you reliably check that ads are blocked?
Re:The next version of Safari will let users block ads on iP... by fwn on Thursday June 11, 2015 @04:29AM (#9698411)
I don't know what counts as reliable, it works most of the time.

You can check for cosmetic filtering (CSS reapplied to your ad-divs) by checking their width or something like that. You can check for blocked domains by getting this information channeled back somehow.

There are only so much relevant filter lists (maybe 15?) out there. They are freely accessible & parsable, so generating an URL on the fly which should be blocked on your domain in one of those filterlists shouldn't be too hard.

Re:The next version of Safari will let users block ads on iP... by facepalm on Thursday June 11, 2015 @04:39AM (#9698441)
Sure, with the existing methods. But since Apple is in control of the browser, couldn't they come up with something undetectable?
Re:The next version of Safari will let users block ads on iP... by fwn on Thursday June 11, 2015 @05:07AM (#9698541)
Hmm. I can't imagine how. Maybe if the Browser would simulate a pageview without adblock but somehow manages to hide the ad page elements. I'm sure that might break pages and (since resources can't be blocked) might reduce the use of adblockers drastically.