Skip to content

Instantly share code, notes, and snippets.

View sucrose's full-sized avatar

sͥucͣrͫose sucrose

View GitHub Profile
@sucrose
sucrose / titleUrlMarkdownClip.js
Created July 7, 2022 22:29 — forked from idelem/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
### Keybase proof
I hereby claim:
* I am sucrose on github.
* I am sucrose (https://keybase.io/sucrose) on keybase.
* I have a public key ASBdMU9v9osHtqA6o5qkvQbIhYsW6QTvoAf6o7fQwfX15Ao
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sucrose on github.
  • I am jbales (https://keybase.io/jbales) on keybase.
  • I have a public key whose fingerprint is 78C4 223A CF31 B3F9 F9B2 CDF9 ADD0 E051 6E3D 8B79

To claim this, I am signing this object: