Re:An Hour with Safari Content Blocker in iOS 9
by loueed on Thursday June 25, 2015 @06:04AM
(#9776880)
If you look at his script the blocking system lets you hide html elements with css, too hide the app store banner all you have to do is inspect element in chrome, find the element id/class and set it to display none.
[ Parent
| on HN ]
Re:An Hour with Safari Content Blocker in iOS 9
by 0x0 on Thursday June 25, 2015 @06:36AM
(#9776958)
App banners are outside the DOM.
Re:An Hour with Safari Content Blocker in iOS 9
by soneil on Thursday June 25, 2015 @07:46AM
(#9777194)
I'd be curious to know if it's still possible to block them, however. The banner itself is outside the document, it's a UI element rendered by the client, similar to a toolbar on a desktop client.
However, it's invoked by a head/meta element within the document, so it may still be possible (eg, when the document is parsed, this element is invoked, and the filter is invoked - which comes first?)
Unfortunately there's enough random forums that offer me an app when I'm only visiting for a one-off google result, that I can see a genuine use-case for this.
Re:An Hour with Safari Content Blocker in iOS 9
by pmontra on Thursday June 25, 2015 @01:26PM
(#9779462)
You need a proxy server that removes the meta tag for the app store from the HTML file.
Re:An Hour with Safari Content Blocker in iOS 9
by kalleboo on Thursday June 25, 2015 @07:49AM
(#9777208)
No they're not
<meta name="apple-itunes-app" content="app-id=XXX, affiliate-data=YYY" />
Re:An Hour with Safari Content Blocker in iOS 9
by andrethegiant on Thursday June 25, 2015 @11:51AM
(#9778765)
The banner itself is rendered outside of the dom. The meta tag tells Safari to render the banner, which it does natively. If the banner was inside the dom we'd see divs and links and the like.