I built a Safari Extension for my own use and some others might be interested. Basically it extracts the article from a page and creates a markdown draft of it.
I downloaded from the app store (congrats on that), but I have not had a lot of luck building the extension, mostly due to signing issues. I will keep at it, but wanted to say thanks in the meantime!
Sorry about the code signing, I just spent a couple hours trying to set it up so it can easily be distributed and hacked on and didn’t succeed. I may try again tomorrow.
I just posted an updated the parsing function in the Cat Scratches extension. Now it does a better job or removing the unnecessary chrome around an article!
Thank you for this really great (and incredibly fast) Safari extension!
I have two questions:
Is it possible to format the timestamp?
Would it be possible to make the cat distinguish between scratching the complete page or just a selected excerpt by having a separate template for each one (and maybe even separate tags)? For the latter I would prefer just the content with a footnote containing the source, {content}[^1][^1:][{title}]({url}) ({timestamp}). While for the complete page it is # {title} {content} --- [{title}]({url}) ({timestamp}).
Very useful - I just installed the extension and I use safari by default - one click and directly into my drafts app - superb to be honest. Thanks. Sometimes such things make me feel - hey why hasn’t someone done this already - amazing stuff and thanks
I tried to make the timestamp format flexible by giving a lot of tag options. If you can’t combine them to the date style you like let me know and I can add a few more.
{timestamp}
{date}
{time}
{datesort}
{timesort}
{year4}
I like the idea, but am afraid if introducing too much complexity into the extension. Let me think about it. If you want to vibe code that feature yourself though feel free to share it back on github.
Stupid me, I hadn’t spotted the little triangle in the settings and therefore hadn’t seen that you did include more than just {timestamp}. Still, to make it impeccable I’d love to have {day} and {month}, i.e. day and month without a leading zero. But I definitely could live without.
I guess you’re right. Thinking about it, the settings for a selected excerpt from a webpage with a footnote would make more sense in the PopClip extension for Drafts because PopClip pops up after selecting text.
Or is it possible to trigger the Drafts share extension (in the menu bar, not in the context menu, which ignores the settings for the share extension) by a keyboard shortcut? Then I could use one shortcut for Cat Scratches to get complete web pages and the same shortcut plus, say, Shift, for the Drafts to import an excerpt from a web page, both with their respective Markdown formatting. And probably all the extras of Cat Scratches are needed less for excerpts than for whole pages.
Like everyone, I just ran this extension through Claude’s latest model and it found some bugs. One of the main bugs was that it was dropping URLs from the body text. So I fixed it and made it an option to include links or not (defaulted to not).
Also I’m adding @suavito’s suggestion for more date formats.