Request to anyone knowing how to create a Javascript bookmarklet
On a couple of Diaspora servers where I've had accounts, there were Javascript bookmarks that I could drag onto my browser's bookmark bar. When I visited a web page and wanted to share the article I was reading, I could highlight some text and click the bookmark. A typical Diaspora edit box would pop up with the article's title, then the text I'd highlighted, then the lead picture on the page, all of which the Javascript had extracted from the web page's Opengraph/Embed header. I could then add extra text, hashtags, or anything else I chose, and then hit the Post button and my new post would go to the server.
Perhaps you can see how useful it might be to those of us who curate content for Mastodon. Perhaps you know how to program such a bookmark. And perhaps you might like to code it.
Obviously, the instance address would need to be embedded or fed into the code somehow. And the Mastodon API would need to have hooks for receiving the post. I don't know how easy or how possible this would all be as a) I haven't done any coding for years, and b) none of it included the REST code that I imagine would be needed.
So I welcome any comments, especially as to whether it can be done or not. Thanks.
Indiefotog likes this.
Garry Knight reshared this.
Tim βοΈ πππ·π΄π³
in reply to Garry Knight • • •Adding a Share On Mastodon button to a website
www.bentasker.co.ukGarry Knight likes this.
Garry Knight
in reply to Tim βοΈ πππ·π΄π³ • •Thanks. Someone else offered me something similar. I can't use it, though, as I don't know Javascript or the Mastodon API. If someone who is familiar with both offers to code something, I'll point them at this share button.
I'm surprised that no one's coded a bookmarklet yet, as it seems to me that it could get a lot of use among those of us who curate website articles.