Skip to content

Instantly share code, notes, and snippets.

@harryfear
Created July 8, 2023 17:38
Show Gist options
  • Save harryfear/275844a3ea4db6c10d9f488c27031128 to your computer and use it in GitHub Desktop.
Save harryfear/275844a3ea4db6c10d9f488c27031128 to your computer and use it in GitHub Desktop.
// 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 = 'sjobs@apple.com';
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