How to make Scriptable open x-success URLs passed in by Drafts?

@kopischke once posted a helper class: