roam-toolkit icon indicating copy to clipboard operation
roam-toolkit copied to clipboard

Safari support

Open jrk opened this issue 4 years ago • 4 comments

I know this is a nontrivial request, as it has a very different extension model, but I would love to see support for Safari. It is so much better on macOS than Chrome.

In support of this, and other potential integrations (e.g., the unofficial iOS app, as userscripts in site-specific browsers or Electron packages, as bookmarklets for use anywhere, etc.), it would be great to see much of this functionality organized into simple library modules, somewhat decoupled from the browser extension infrastructure.

jrk avatar Apr 07 '20 22:04 jrk

Yeah it's not trivial. I don't use Safari, but I've heard that for newest version you can only develop extensions in Swift. So its totally incompatible with other extension platforms

Stvad avatar Apr 08 '20 05:04 Stvad

Extensions are delivered via apps and the mac/iOS "extension" mechanism, which is exposed via Objective-C and Swift APIs, but that's just the glue for loading things. The meat of the work is generally all Javascript and CSS injection, applying actions by running Javascript, etc.

In short, it's the scaffolding and how you add buttons to the toolbar, etc. that's different, not most of the core logic for interacting with and extending the web content itself.

jrk avatar Apr 08 '20 20:04 jrk

Apple just released a new extensions API and a Chrome extension converter. It’ll work on Catalina once Safari 12 comes out. I’ll explore this for y’all.

imagine avatar Jun 24 '20 17:06 imagine

thank you @imagine!

Stvad avatar Jun 25 '20 05:06 Stvad