Skip to content

Instantly share code, notes, and snippets.

@dzharii
Created December 20, 2022 23:54
Show Gist options
  • Save dzharii/6f2e3627292e72af654975e05428dc62 to your computer and use it in GitHub Desktop.
Save dzharii/6f2e3627292e72af654975e05428dc62 to your computer and use it in GitHub Desktop.
This JavaScript snippet is a browser bookmarklet, which copies the active browser tab / page title and url as a markdown link into the clipboard. If some text is selected, it will copy the selection as a markdown quote. This is a hacky way to write javascript to write an entire script in one JavaScript line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment