Last active
December 21, 2020 17:11
-
-
Save michimani/c636123efd7256171456e61172a8af90 to your computer and use it in GitHub Desktop.
Copy current web page title and url link to clipboard as markdown link format.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){const titleTag=document.getElementsByTagName("title"),pageUrl=location.href;let pageTitle=pageUrl;titleTag.length>0&&titleTag[0].innerHTML!==""&&(pageTitle=titleTag[0].innerHTML);const md=`[${pageTitle}](${pageUrl})`;navigator.clipboard&&navigator.clipboard.writeText(md);})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment