Markdown bookmarklets in the browser

Copy the current URL as a markdown link:

javascript:(function(){navigator.clipboard.writeText('[' + document.title + '](' + document.location.href + ')').catch((error) => { alert(`Copy failed! ${error}`); }); })();

Copy the current Outlook.com email as a markdown link:

javascript:(function() { navigator.clipboard.writeText('[Mail: ' + document.getElementsByClassName("allowTextSelection")[0].title + '](https://outlook.office365.com/owa/?ItemID=' .concat(window.location.href.split("/id/")[1]) .concat('&exvsurl=1&viewmodel=ReadMessageItem') + ')').catch((error) => { alert(`Copy failed! ${error}`); }); ;})()

These bookmarklets are useful to copy links into your Markdown editors such as Logseq, Obsidian, Joplin, etc.

no responses for Markdown bookmarklets in the browser

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.