On this page
Drag the link below onto your Favorites Bar. The default click behaviour simulates navigation on the current page, and the destination URL is whatever you put after javascript:window.location — which in this case is just the target app’s URL scheme.
You can look up most apps’ URL schemes at AppTalk.
2Do
Then edit the address and replace it with:
javascript:window.location='twodo://x-callback-url/add?task='+encodeURIComponent(document.title)+'¬e='+encodeURIComponent(window.location)+'&action=url:'+encodeURIComponent(window.location)

So really it’s just a snippet of JavaScript that picks up the current page’s context and hands it off to the URL scheme. Specifically:
document.title— the page titlewindow.location— the page URL
Things
Things’s URL scheme looks like this:
/// add a todo due when tomorrow
things:///add?title=iamtitle¬es=iamnotes&when=tomorrow
So a Send-to-Things variant becomes:
javascript:window.location='things:///add?title='+encodeURIComponent(document.title)+'¬es='+encodeURIComponent(window.location)+'&when=today'
OmniFocus
Same idea for OmniFocus:
javascript:window.location='omnifocus:///add?note='+encodeURIComponent(window.location)+'&name='+encodeURIComponent(document.title)
Or just grab the pre-baked link from OmniFocus’s own page and drag it onto the Favorites Bar.
If you can’t see the Favorites Bar, click the Safari menu’s View entry to enable it (called “视图” on Chinese systems).
