Hacker News new | past | comments | ask | show | jobs | submit login

Are you referring to the `-[WKWebView navigationDelegate]`?

Thats only used for user initiated navigation, not loading of assets.

You could still inject a JavaScript file or CSS file though to help hide pieces of the view. But that would be content blocking after the HTTP requests have been made.

I don’t know of a way to intercept the HTTP requests as they’re being made from a WKWebView like Safari does for content blocking.




Could attach a service worker if it can load before the assets. I know safari has this under consideration, but it's a w3 standard now anyway.


Isn’t it still a working draft?


you're right, too soon.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: