AdguardForiOS icon indicating copy to clipboard operation
AdguardForiOS copied to clipboard

Userscripts support for AdGuard iOS

Open kaznovac opened this issue 4 years ago • 10 comments

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 avatar Apr 09 '20 14:04 kaznovac

@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 avatar Apr 13 '20 09:04 SoLenny

@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).

kaznovac avatar Apr 13 '20 10:04 kaznovac

@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?

rakleed avatar Dec 23 '21 20:12 rakleed

Yeah, now this is something that can be actually done.

ameshkov avatar Dec 27 '21 08:12 ameshkov

Although we should check with App Store policies, installing arbitrary userscripts may be against it.

ameshkov avatar Dec 27 '21 08:12 ameshkov

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

bradenglund avatar Dec 27 '21 14:12 bradenglund

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!

michael1900 avatar May 20 '22 22:05 michael1900

Further support added for Userscripts rules: https://github.com/quoid/userscripts/issues/224

ghost avatar Aug 12 '22 09:08 ghost

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

bennett-zhang avatar Sep 01 '23 22:09 bennett-zhang

Any news on this? This and the missing of a serious backup/sync icloud option are really a shame after so many years...

michael1900 avatar Jan 24 '24 22:01 michael1900