Created
July 8, 2023 17:38
-
-
Save harryfear/275844a3ea4db6c10d9f488c27031128 to your computer and use it in GitHub Desktop.
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
// Install here: https://chriszarate.github.io/bookmarkleter/ | |
// 🪃 Email the current open page to yourself as a link via programatic mailto invocation | |
javascript:(function() { | |
var pageTitle = encodeURIComponent(document.title); | |
var pageUrl = encodeURIComponent(window.location.href); | |
var emailAddress = '[email protected]'; | |
var subject = 'Note to self (' + pageTitle + ')'; | |
var body = pageTitle + '%0A%0A' + pageUrl; | |
var mailtoLink = 'mailto:' + emailAddress + '?subject=' + subject + '&body=' + body; | |
window.location.href = mailtoLink; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment