anakinsk / SafariStand

SIMBL plugin for Safari
128 stars 6 forks source link

Can this be used for Safari Technology Preview #27

Open giseleblair opened 7 years ago

giseleblair commented 7 years ago

Love this! Thanks so much for keeping it alive. Would be great if this could also be used for Safari Technology Preview.

anakinsk commented 7 years ago

How is it behaving itself at the moment?

Fofer commented 7 years ago

How do we get it working in Safari Technology Preview at all? I believe that's the question. (I have it working in Safari 10.0.1. But it doesn't work in Safari Technology Preview, the Stand menu doesn't even appear.)

giseleblair commented 7 years ago

It's the same for me. Doesn't show up at all in STP.

anakinsk commented 7 years ago

That Technology Preview version, is that a separate bundle?

EDIT: I mean I am not sure how that injection thing works, but I think it is done by SIMBL and it needs a bundle id or similar. I will take a look when I have some spare time but if that's true that will depend on whether you can inject the stand into different processes at a time or not.

Fofer commented 7 years ago

It's available for anyone to download here: https://developer.apple.com/safari/download/

w0lfschild commented 7 years ago

The developer preview uses Library-Validation

You need to remove that in order to allow other stuff to hook into it.

You can unsign the binary and strip this property using this https://github.com/steakknife/unsign

Fofer commented 7 years ago

mySIMBL 0.5.1 was just released, and it has new toggles that allow injection into Safari Tech Preview (as well as Xcode.)

Does this mean it circumvents Library-Validation, and will it be easier to get SafariStand working with Safari Tech Preview now?

w0lfschild commented 7 years ago

@Fofer

Does this mean it circumvents Library-Validation

It's just using exactly what I posted above

And will it be easier to get SafariStand working with Safari Tech Preview now?

Theoretically yes because all you need to do is click a button and type your password to allow injection.

Fofer commented 7 years ago

Great, thanks. I toggled the checkbox on for both apps, and then launched Safari Tech Preview. But SafariStand isn't loading (as it does for regular Safari.) Forgive me for being dense, but is there something else I'm supposed to be doing? Or does the SafariStand plugin itself need to be updated to be compatible with both Safari and Safari Tech Preview?

w0lfschild commented 7 years ago

Correct you need to add the Tech Preview bundle ID to SafariStand.

com.apple.SafariTechnologyPreview

It's also not guaranteed to be compatible of course.

Fofer commented 7 years ago

Gotcha, thanks... I will wait for more intrepid souls to pave the way on this one.

anakinsk commented 7 years ago

@w0lfschild is that in SIMBLTargetApplications?