AdguardTeam / AdguardForiOS

The most advanced ad blocker for iOS
https://adguard.com/
GNU General Public License v3.0
1.43k stars 200 forks source link

Userscripts support for AdGuard iOS #1542

Open kaznovac opened 4 years ago

kaznovac commented 4 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

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

SoLenny commented 4 years ago

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

kaznovac commented 4 years ago

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

rakleed commented 2 years ago

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

ameshkov commented 2 years ago

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

ameshkov commented 2 years ago

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

bradenglund commented 2 years ago

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

michael1900 commented 2 years ago

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!

ghost commented 2 years ago

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

bennett-zhang commented 1 year ago

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

michael1900 commented 7 months ago

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