floccus icon indicating copy to clipboard operation
floccus copied to clipboard

Safari extension possible ?

Open NiTRoeSE opened this issue 6 years ago • 31 comments

Hi, is it possible to add safari support ?

regards

NiTRoeSE avatar Jul 26 '17 08:07 NiTRoeSE

Obviously, nothing is impossible, but it would be quite a lot of work, since Safari has a different API than the one provided by Chrome/WebExtensions.

marcelklehr avatar Jul 26 '17 14:07 marcelklehr

Okay, that´s coherent. It would be great if anybody who has coder experience with safari extension could port this. Unfortunately i haven't such experience. Thanks for your work !

NiTRoeSE avatar Jul 27 '17 06:07 NiTRoeSE

Check out FreedomMarks, which claims Safari compatibility. Let us know if it works.

sunjam avatar Jan 31 '18 02:01 sunjam

I would also love to see Safari support. Then the plugin would be covering all needs. Thanks a lot for your great work!

steffen-klein avatar Oct 10 '19 14:10 steffen-klein

Desperate for safari support, my iPhone & Mac & PC bookmarks are chaos.

FunnyFly-ZW avatar Jul 25 '20 12:07 FunnyFly-ZW

So, short update after doing some research about the state of Safari extensions:

Safari 14 introduced support for webextensions, but

  1. You apparently need macOS to develop those: https://developer.apple.com/documentation/safariservices/safari_web_extensions
  2. Safari doesn't yet support the webextension bookmarks API: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs

marcelklehr avatar Jul 25 '20 12:07 marcelklehr

safari support would be great as my clients mostly use macs

grafst avatar Jul 27 '20 19:07 grafst

So, short update after doing some research about the state of Safari extensions:

Safari 14 introduced support for webextensions, but

  1. You apparently need macOS to develop those: https://developer.apple.com/documentation/safariservices/safari_web_extensions

  2. Safari doesn't yet support the webextension bookmarks API: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs

Apple will make webextension API available in Safari 14, maybe Safari support is possible!

Apple said this: Safari Web Extensions can add custom functionality to Safari 14 beta using the same WebExtensions API used in other browsers, such as Chrome, Firefox, and Edge. And with a new conversion tool in Xcode 12 beta, you can quickly bring your existing extensions to Safari and make them available on the Mac App Store this fall.

Details: https://developer.apple.com/news/?id=kuswih5l

FunnyFly-ZW avatar Aug 29 '20 05:08 FunnyFly-ZW

@FunnyFly-ZW I'd be delighted to support Safari iff they support the webextension bookmarks API (it's currently very hard to find out what they support exactly). Also, somebody else would have to build the extension for safari as I don't intend to buy an apple computer in order to run XCode.

marcelklehr avatar Aug 31 '20 13:08 marcelklehr

Hey, now that the new Safari is released, are there any news?

steffen-klein avatar Sep 20 '20 11:09 steffen-klein

Safari 14 doesn't support the bookmarks API: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs#bookmarks

It could still be that they are able to convert those APIs to their own bookmarks interface. If you have a mac and would like to try the conversion, have a look at the guide: https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari

marcelklehr avatar Sep 20 '20 12:09 marcelklehr

Maybe someone could reverse engineer the iCloud Bookmarks firefox extension, so we would at least have an iCloud to floccus bridge.

ayancey avatar Nov 24 '20 21:11 ayancey

Did someone try the conversion? I own a macbook and would like to implement support for safari to finally sync my bookmarks between chrome and safari.

flecmart avatar Apr 26 '21 14:04 flecmart

@flecmart cool! I don't think anybody has tried it, yet. I'm available over on gitter https://gitter.im/marcelklehr/floccus if you need help :)

marcelklehr avatar Apr 27 '21 07:04 marcelklehr

Good to know :-) Just cloning your repo and installing the conversion tools right now. I did a little bit of research already that primes me disappointed: https://developer.apple.com/forums/thread/650614

Looks like 10 month ago it did not work. I will post the results here when I find an hour of spare time the next days.

flecmart avatar Apr 27 '21 07:04 flecmart

I am maybe a bit early, but has the new version of Safari in Monterey/iOS15/iPadOS15 changed this? :)

karbowiak avatar Jun 08 '21 20:06 karbowiak

I am maybe a bit early, but has the new version of Safari in Monterey/iOS15/iPadOS15 changed this? :)

Sadly still not... Just for fun I created an iOS 15 Safari extension from Floccus and noticed that Safari still hasn't implemented the bookmarks addon API. Other than that, it seems to run fine on iOS (apart from a few layout issues).

johannes-schliephake avatar Aug 19 '21 21:08 johannes-schliephake

Perhaps making an app which would work for both, iOS & macOS just like Monal @monal-im

Ping @tomoakley concerning https://github.com/jarun/buku/issues/494 https://github.com/jarun/buku/issues/569 https://github.com/floccusaddon/floccus/issues/1033

e: P.S. Extensions are supported by both Safari on iOS and macOS.

GreenLunar avatar Feb 27 '22 07:02 GreenLunar

An iOS app should likely be easier than getting it to run as a safari extension, as the android app version of floccus is using capacitor.js

marcelklehr avatar Feb 27 '22 11:02 marcelklehr

So, out of also wanting this to be implemented because i've had to move to chrome for this extension when i really like safari, I tried opening up bookmarks.plist and it looks like the file is restricted to read only from the filesystem (or at least from xcode). Which may put a wrench between syncing bookmarks. Although it is possible someone could write a client that reads the plist and uploads them instead. Which means safari bookmarks could at least be uploaded. Just quickly leaving my thoughts in here before I head off to work after stumbling upon this issue

S0ulf3re avatar Jun 04 '22 13:06 S0ulf3re

Any news?

bowencool avatar Aug 23 '22 06:08 bowencool

A less elegant but viable alternative that works: Using iCloud for Windows. I created a Windows 10 virtual machine on my unraid server to run it. It works well, but it costs too many resources. image

bowencool avatar Aug 23 '22 09:08 bowencool

Icloud for windows has nothing to do with the safari browser.

On Tue, Aug 23, 2022, 2:06 AM 博文 @.***> wrote:

A less elegant but viable alternative that works: using iCloud for Windows https://support.apple.com/en-us/HT204283 [image: image] https://user-images.githubusercontent.com/20217146/186118618-c58e9cfa-ae5b-4448-a6f2-a58db24e74f7.png

— Reply to this email directly, view it on GitHub https://github.com/floccusaddon/floccus/issues/23#issuecomment-1223778615, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANUKZQSTSOVI4WS3S6EDEDV2SIAZANCNFSM4DUOO2EA . You are receiving this because you commented.Message ID: @.***>

sunjam avatar Aug 23 '22 14:08 sunjam

I've seen there is an floccus app now on the app store, but I couldn't manage to login yet :(

mik-at avatar Aug 23 '22 15:08 mik-at

Glad you found that, but the Floccus app also has nothing to do with this Safari browser topic. If you need help could you please ask help.nextcloud.com

sunjam avatar Aug 23 '22 16:08 sunjam

Icloud for windows has nothing to do with the safari browser.

Safari is always kept synced with iCloud, so iCloud for windows doesn't need to operate safari

bowencool avatar Aug 24 '22 00:08 bowencool

There are few mac os apps to read and modify safari bookmarks on mac: https://apps.apple.com/ru/app/bookmarks-menu/id734238170 https://apps.apple.com/ru/app/bookmarkapp/id984977589

Why we cant make sync app with the same way to access? We don't need to publish it to store if it is a problem. It is actually direct access to file ~/Library/Safari/Bookmarks.plist

AKikhaev avatar Sep 21 '22 12:09 AKikhaev

Why we cant make sync app with the same way to access?

As I wrote above, it's definitely possible, but it's non-trivial and takes time that I currently want to spend on other things, especially, since it seems to be a matter of time till Safari supports the APIs we use today.

marcelklehr avatar Sep 24 '22 14:09 marcelklehr

Is it possible to sponsor the development of Safari support in floccus? I would also like to have this and would be willing to pay for it. Perhaps many others as well. This is really a great tool, and the lacking support for Safari is really a pity.

Others, please thumbs-up this comment if you would also be willing to sponsor the prioritized development of an extension for Safari.

SnoopyCoder avatar Sep 25 '22 12:09 SnoopyCoder

FYI, I have just learned of the existance of the Orion browser by Kagi, which is available for both Mac and iOS, is based on webkit, and supports running floccus as a web extension inside (I have not tested this, but from their docs it should work) along with roughly 70% of existing firefox/chrome extensions. Let me know how it goes, if you give it a try :)

marcelklehr avatar Dec 15 '23 19:12 marcelklehr