Skip to content

Instantly share code, notes, and snippets.

View cogdog's full-sized avatar

Alan Levine cogdog

View GitHub Profile
@cogdog
cogdog / gist:d55b3fb59082f9bf14686c1d6feeb365
Created March 28, 2024 23:11
Share openly Bookmarklet
This is a quick and sloppy bookmarklet to make use of Ben Werd's Share Openly https://werd.io/2024/share-openly
From any page you can select a but of text to include in your shared prompt, click the bookmarklet or enter in a dialog box, all passed to
ShareOpenly.org to enable a share post to your preferred service.
Create a new bookmark on your browser bar (for now I will have to assume you can dio a new one from scratch), name it
whatever you like, and for the url enter
javascript:q=location.href;t=getSelection()+'';if(!t)%7Bvoid(t=prompt('Share Openly with text...',''))%7D;if(t) location.href='https://shareopenly.org/share/?url='+encodeURIComponent(q)+'&text='+encodeURIComponent(t);
@cogdog
cogdog / collapse.md
Created November 3, 2024 15:33
Testing Collapsibles
Let's Open Things Up

Thank You Roland!

Roland showed us!

You can add text within a collapsed section using HTML details/summary. Indeed, with a few extras on the detail tag include attribute markdown="1 and the summary tag needs markdown="span"