Open shirosora55555 opened 2 years ago
@shirosora55555 I had a quick look at https://developer.apple.com/documentation/safariservices/safari_app_extensions. If I'm reading it correctly, I can't just port WebToEpub to Safari. A completely new extension would need to be be written, basically from scratch, as a iOS application. And I simply don't have the spare time to learn do that.
@shirosora55555 Apologies, I did some more digging. According to https://lapcatsoftware.com/articles/chrome-extension.html Sounds like the truth is somewhere between us. That is, the extension might be able to work, but it requires creating a native Mac wrapper. And that requires a Mac and Mac developer skills. And it assumes Safari implements all the APIs used by WebToEpub. (Looking at https://developer.apple.com/documentation/safariservices/safari_web_extensions/assessing_your_safari_web_extension_s_browser_compatibility I don't see any obvious problems, but checking everything would take a long time.)
So, I still don't have the time for it. But if you can find someone, I have no objection to them doing the work. (Obviously, WebToEpub IS open source.)
@shirosora55555 I asked a Mac developer friend of mine to have a try at this results:
This is the output from the converter tool:
Warning: The following keys in your manifest.json are not supported by your current version of Safari. If these are critical to your extension, you should review your code to see if you need to make changes to support Safari: icons webRequestBlocking applications browser_action incognito manifest_version downloads default_locale version webRequest name
Using Safari 14.1.2 I went ahead and created the project which builds with no complaints, And starts to work (after enabling unsigned extensions it's in the list) I tried an archiveofourown story, and the dialog appeared to generate the epub. It seemed to do something, but then:
undefined is not an object (evaluating 'browser.downloads.download') saveOnFirefox@safari-web-extension://BE21F36B-3C37-46B1-8267-0704E6BB0B9B/js/Download.js:70:33 promiseReactionJob@[native code]
presumably this is the lack of support for downloads
I just bought a couple of iOS Safari extensions (Amplosion, Noir), and one of the things I wished for was an iOS WebtoEpub extension to add to that list. This will fit right in for when I want to consume novels without access to my PC.
@Synteresis I've been considering a work around for the CORS. (Which I'm seeing a lot more of.) The idea would be inject code to make the fetch call into the ToC web page itself (which should be from the target site) then pass the results back to the tab holding WebToEpub.
Feature Request: WebToEpub for Safari Extensions in iOS 15 - can port from Google Chrome Web Store extensions, Firefox or Edge.
Reason why I am Requesting this Feature. [1. So i can use WebToEpub in Safari in my iPad for IOS 15.
Why should it Be made for Safari Extensions in iOS 15? [1. i would gladly pay for the extension app for it. [2. Other iOS iPad Users would also likely to pay for it. [3. or placing ads for not paid version for extension app. [4. it could be benefit you if user paid or income from ads.