Skip to content

Instantly share code, notes, and snippets.

@emisjerry
Last active November 14, 2021 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emisjerry/155b85175f2a24994a9f05b6d2f455c3 to your computer and use it in GitHub Desktop.
Save emisjerry/155b85175f2a24994a9f05b6d2f455c3 to your computer and use it in GitHub Desktop.
QuickAdd Capture: Decode URL #obsidian #quickadd
selObj = window.getSelection();
text = selObj.toString();
//await this.quickAddApi.utility.getClipboard();
text = await decodeURIComponent(text)
this.quickAddApi.utility.setClipboard(text);
//console.log("main " + text);
return text;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment