AdguardForiOS
AdguardForiOS copied to clipboard
Userscripts support for AdGuard iOS
Prerequisites
Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- [x] I am running the latest version
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
Problem Description
I'd like to have Userscripts support on iOS devices the same as in the macOS version.
Proposed Solution
Implement support/management for Userscripts https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1538046-userscripts
Alternatives Considered
AdGuard has no noteworthy alternatives ;)
Additional Information
@kaznovac We theoretically can enable the user to run a user script by pressing a button. This way we run the assistant. But we have no way to run scripts automatically on every page. This API can only be used on a webview, which we open inside our program, but not in safari.
Therefore, at the moment we do not plan to add something like this.
@SoLenny I like the suggested theoretical solution. Thanks for the hint where to look at (if I by some chance find free time to implement this).
@SoLenny @AleksandrShulgin @artemiv4nov @ameshkov with the release of iOS 15, support for the Web Extension API appeared. Can you think about implementing custom scripting support now?
Yeah, now this is something that can be actually done.
Although we should check with App Store policies, installing arbitrary userscripts may be against it.
Maybe consider supporting another open space project instead of integrating to adguard.
https://github.com/quoid/userscripts
there is also a non open source app currently present on the App Store https://apps.apple.com/us/app/macaque/id1595306197
I am using Macaque, quoid's userscript still have this problem: https://github.com/quoid/userscripts/issues/257 and so it's impossible with it to use aguard PopupBlocker script.
I think it's the time to integrate a script manager in ios app like on mac. Please!
Further support added for Userscripts rules: https://github.com/quoid/userscripts/issues/224
AdGuard supports userscripts (aka "extensions") on every platform including Mac, Android, and Windows. I don't see why it doesn't support this functionality on iOS, especially with the Web Extension API being 2 years old at this point. @SoLenny
Any news on this? This and the missing of a serious backup/sync icloud option are really a shame after so many years...