drummerSupport icon indicating copy to clipboard operation
drummerSupport copied to clipboard

Drummer's web clips bookmarklet

Open scripting opened this issue 4 years ago • 17 comments

A new feature today, Web clips & the bookmarklet.

This is a place for comments and questions.

scripting avatar Oct 23 '21 13:10 scripting

Nice, tried it. Works well. The selected text being added as a subitem should be really helpful.

Just curious though, does a link type node has any meaning in a blog.opml too?

am1t avatar Oct 23 '21 13:10 am1t

Nice!

@am1t Using this with blog.opml was my first thought. If the bookmarklet could create a meaningful node in blog.opml (either directly or via copy/paste from notes.opml) this could be a super nice way of link-blogging (ala Gruber).

Just for the heck of it, I pasted one of the bookmarklet-generated nodes from notes.opml into blog.html, but got an "Error running script" dialog when building the site, so I deleted it. Worth a try :).

jackbaty avatar Oct 23 '21 13:10 jackbaty

@am1t -- yes it does, but I don't like what it does with it. An example.

http://clueless.lucky.wtf/2021/10/23.html

I admit to not having put a lot of thought into it, I basically copied what Radio3 does with it.

The fact that the rendering is so ugly is why I never use Link nodes in my blog work.

But I do use them for general outlining, not for publication.

scripting avatar Oct 23 '21 14:10 scripting

Based on your comments and my quick experimentation, it seems that this extension is best considered a 'research tool', and in fact, the Radio3 bookmarklet is a better 'publishing tool', albeit that it publishes outside the main Drummer blog outline.

I think what we are all alluding to here is, "how can we get a clipper/linker that smooshes the best of R3 and Drummer bookmarklet services together, to facilitate insta-publishing?"

andrewcanion avatar Oct 23 '21 14:10 andrewcanion

Be aware this is in the support section -- if you're going to plan out a collaborative development project, that can't be here, because this is just for support.

That's what the RFC site is for.

https://github.com/scripting/drummerRFC

scripting avatar Oct 23 '21 15:10 scripting

Here's my comment:

http://oldschool.scripting.com/mahu/2021/10/24/162257.html?title=newBookmarklet

dmatchett avatar Oct 24 '21 16:10 dmatchett

@scripting -- looks like you've solved all the bookmarklet issues -- thanks and yay! There are quirks and different behaviors in different circumstances -- maybe I'll blog about those, but it keeps on working so that's only local color. My favorite drummer feature so far -- I'm using it daily with or without any visible blog posts. As previously mentioned: this is the first bookmark manager that lets me arrange things into directories, kind of an old-style personal Yahoo.

Another way of thinking of it: it's like a pruned browser history, a breadcrumb trail of the day's worthwhile links, with no effort.

dmatchett avatar Nov 14 '21 17:11 dmatchett

@dmatchett — what an interesting concept, a personal yahoo.

scripting avatar Nov 14 '21 17:11 scripting

I spoke too soon. I was on the "May 2015" page from this morning's Scripting News. I clicked the bookmarklet. My browser was open to my "Bookmarks" tab, not the "Notes" tab. In a testing mood, I closed all tabs at that point and reloaded. It reopened to the Bookmarks tab. There was no link showing on the Notes tab. I reloaded -- no joy. I left the Notes tab showing, returned to a different Safari tab and re-clicked the bookmarklet for "May 2015" aka "How to have a Future." Again, nothing showed, but when I hit Reload (i.e. command-R) the link appeared. That's good enough for me, but I think the glitch deserves tracking, just low priority. I'm content with the overall.

dmatchett avatar Nov 14 '21 18:11 dmatchett

I'm having trouble parsing this.

Can you summarize -- what was wrong?

scripting avatar Nov 14 '21 19:11 scripting

Will try -- requires some form of attention -- poets, you know... :)

dmatchett avatar Nov 15 '21 20:11 dmatchett

The bookmarklet itself seems to work well for me (tested today). A new (Safari) tab is opened and a new entry is created in the correct place (date) in the Notes outline.

The unexpected behavior I'm seeing is an unwanted redirect each time I use the bookmarklet.

I keep Drummer open in a "pinned" Safari tab. After I use the Drummer bookmarklet, that tab is automatically redirected to http://docserver.scripting.com/drummer/about.opml. Using the back button doesn't help, as the redirect happens again. The only way out of it is to manually type "drummer.scripting.com" in that pinned tab. (It does not matter whether the tab is pinned or not). It's very strange.

Here's a video that I hope demonstrates the phenomenon:

https://user-images.githubusercontent.com/970/142024545-a525987b-71d9-4361-953e-2d134c83758d.mp4

In the video I:

  1. Highlighted some text on a web page
  2. Clicked the Drummer bookmarklet
  3. Showed that the entry was created correctly in Notes.opml in a new browser tab
  4. Clicked my pinned Drummer tab, on which you can see that it's been redirected to About Drummer
  5. Tried the Back button several times, only to be redirected to About Drummer each time

This may very well be something environmental on my Mac, but I can't figure out what that might be.

jackbaty avatar Nov 16 '21 16:11 jackbaty

@jackbaty I see the same behaviour on safari on an iPad. I’ve not got Drummer pinned, but if it open in another tab, that tab then opens the about page.

troutcolor avatar Nov 16 '21 17:11 troutcolor

@jackbaty @troutcolor This relates to an expected behavior, I believe, in which Drummer can only be open in one browser tab and if a new instance is opened the previous tab goes to the Docs page. I will look for previous issue that documented this.

mistersugar avatar Nov 16 '21 17:11 mistersugar

@jackbaty -- it has to be that way. i agree -- i wish there were some way to tell the OS tho not reload the app if there's already an instance open. but there is no such thing.

@mistersugar -- yes, Drummer can tell if another instance is opened. the OS will not let it close itself (which would be the rational thing to do, so it redirects (which it will let it do).

there's a lot of ad hoc behavior in the intersection between the OS and the web.

scripting avatar Nov 16 '21 17:11 scripting

I see, and makes sense. Thanks for the clarification, I didn't see any other mentions of it.

I suppose my wish would be that if I close all other Drummer tabs, it could know that, and the back button would then "stick" in my pinned tab. This is certainly work-aroundable, though.

jackbaty avatar Nov 16 '21 17:11 jackbaty

A new detailed error report for the bookmarklet.

https://github.com/scripting/drummerSupport/issues/145

scripting avatar Dec 21 '21 16:12 scripting