open-url-in-container icon indicating copy to clipboard operation
open-url-in-container copied to clipboard

Any chance of adding a context menu to edit bookmarks?

Open rafaelgomesxyz opened this issue 5 years ago • 4 comments

It would be great if there was a context menu to edit bookmarks, so that we can add or change the container without having to manually edit the URL.

rafaelgomesxyz avatar Apr 03 '20 16:04 rafaelgomesxyz

Thank for your interest @rafaelgssa! Do you mean to add an item to the bookmark's context menu to be able to assign a specific container to it (e.g. to get bookmark URL and transform it to a "containerized" URL)?

honsiorovskyi avatar May 09 '20 12:05 honsiorovskyi

Yes. It would preferably show a dropdown with all of the available containers, so that we can select which container to assign it to. Kind of how my extension Container Bookmarks does it:

rafaelgomesxyz avatar May 09 '20 13:05 rafaelgomesxyz

Thanks, I'll try to do something that would cover this use case :+1:

honsiorovskyi avatar May 09 '20 15:05 honsiorovskyi

A bookmarklet to tide us over:

javascript:(function(c,u)%7Bc&&(c=c.replace(/%5E%5Cs+%7C%5Cs+$/g,''))&&(u=prompt('URL?'))&&(u=u.replace(/%5E%5Cs+%7C%5Cs+$/g,''))&&prompt('Contained%20URL:','ext+container:name='+encodeURIComponent(c)+'&url='+encodeURIComponent(u))%7D)(prompt('Container%20name?','Personal'))

Replace the default container name at the end with whatever you want, but make sure it's a percent-encoded, valid JS string literal.

Usage: click bookmark, Optionally edit name, hit Enter, Ctrl + V to paste URL, hit Enter, Ctrl + C to copy contained URL, hit Esc/Enter.

Roy-Orbison avatar May 18 '20 07:05 Roy-Orbison