Addon icon indicating copy to clipboard operation
Addon copied to clipboard

Safari support?

Open bdougherty opened this issue 4 years ago • 6 comments

Now that Safari supports the WebExtension API, do you think it would be possible to offer a Safari version? Happy to help if I can.

bdougherty avatar Jan 13 '21 21:01 bdougherty

If you have Xcode installed you can create a Safari extension quite easily yourself by running

xcrun safari-web-extension-converter Addon

There are some more detailed instructions here https://bartsolutions.github.io/2020/11/20/safari-extension/

finngaida avatar May 05 '21 14:05 finngaida

Great idea. Would be sweet to get this in and listed.

adammenges avatar May 05 '21 19:05 adammenges

Unfortunately, the current latest Safari 14.1 does not support WebRequestBlocking. It seems to be not possible to convert. Saw this issue in other extensions that try to move to Safari, too.

Joilence avatar May 06 '21 13:05 Joilence

Unfortunately, the current latest Safari 14.1 does not support WebRequestBlocking. It seems to be not possible to convert. Saw this issue in other extensions that try to move to Safari, too.

Yes, that's right. Unfortunately, the WebRequestBlocking is the core API required by ClearURLs. We have to wait until Apple will implement this.

KevinRoebert avatar May 06 '21 20:05 KevinRoebert

@KevinRoebert Safari 15 will add support for declarativeNetRequest. Can this help you?

rakleed avatar Jun 11 '21 11:06 rakleed

@KevinRoebert Safari 15 will add support for declarativeNetRequest. Can this help you?

Unfortunately, this does not help. This is Chrome's webRequestBlocking replacement for the WebExtentensions v3 API. This only allows you to create restricted filter lists that no longer allow individual treatment. So you can no longer remove (or add) elements from a URL, just block a request entirely. However, this is useless for ClearURLs (and also many other add-ons like uBlock or NoScript). We don't want to discard an entire request due to a (restricted) filter but process this request to remove possible "harmful" content from it.

This topic was also covered on Reddit by gorhill: https://www.reddit.com/r/uBlockOrigin/comments/hdz0bo/will_ublock_origin_back_to_macos_big_sur/fvoc7wk/

This may also make it impossible to use addons like ClearURLs, uBlock, or NoScript in future versions of Chrome.

We can only hope that Apple will implement the webRequestBlocking API. Until that happens, I can't provide the addon for Safari.

Another problem would be the exorbitant costs for developers. 99€ per year to deploy a free!!! addon. But that would be a problem that could be addressed once/if Apple provides the necessary API.

KevinRoebert avatar Jun 11 '21 16:06 KevinRoebert