Closed ajayyy closed 3 years ago
Until iOS 15 is released, it will likely not be possible to publish the extension in the App Store, but it can be redistributed through TestFlight. There are already some extensions that work in the beta version of Safari for iOS.
iOS 15 released earlier this week. Do you guys think the existing Safari Extension can be modified to include iOS devices as a built target?
The cloud mac service I used doesn't offer the new macos version in the pay as you go plan yet, so I'll have to look at other options
FYI: I was able to compile SponsorBlock for iOS 15 / iPadOS 15. Used the instructions to convert the extension to Safari (Not sure if this is actually needed, I still loaded resources from the ChromeExtension folder). Then created a basic extension by following these instructions.
I also added the remote.js source from AdguardTeam/BlockYouTubeAdsShortcut to the content_scripts in the manifest so it would automatically block YouTube ads as well. (No need to "share" it to AdBlock, now)
@evanreichard I was able to reproduce your steps!
I believe that running xcrun safari-web-extension-converter /path/to/extension
already creates both an Xcode project with both Mac, iOS extension and app targets (I don't need think you need to manually create a new extension project).
I just had to make slight changes to the publishing settings following the wiki instructions.
The Adguard remote.js script seems out of date compared to the bundled script with the Adguard for safari app. The remote script still worked but did not fully block ads, it still shows the skip add button.
I bit the bullet and bought a used macbook.... Will see how it goes once I receive it. Should be simple once I can download the latest xcode
Update: I got my mac and got it working on simulators, but Apple really loves adding obstacles...
@ajayyy that almost sounds like "please give us some more money before you can publish your software to enrich our ecosystem"
@ajayyy Really glad to see this on iOS! Working great on the YouTube website so far, but is it possible to update the safari extension to work on Invidious instances as well? I think the desktop browser extension works with Invidious but maybe there’s a blocker there on iOS?
@cwille97 That's covered by https://github.com/ajayyy/SponsorBlock/issues/798, but the current method of dynamic-domain scripts doesn't work on Safari unfortunately
@ajayyy thanks for combining this with the macOS Safari version. I fully expected to pay again for iOS and decided to donate instead
Now that an official Safari extension is available, it should be possible to build this for iOS 15 as well
https://github.com/ajayyy/SponsorBlock/wiki/Safari