all repos — save-forlater @ b08ba4ace1204108ec719c43abe6d3d1b52739d3

Browser add-ons for sending a page via forlater.email

firefox/forlater.js (view raw)

 1function saveForLater(tab) {
 2  const tabURL = tab.url
 3  const mailto = `mailto:save@forlater.email?&body=${tabURL}`
 4  browser.tabs.update({
 5    url: mailto,
 6  })
 7}
 8
 9browser.browserAction.onClicked.addListener(saveForLater)
10browser.contextMenus.create({
11  'title': "Send page to forlater",
12  'contexts': ['all'],
13  'onclick': function(info, tab) {
14    saveForLater(tab);
15  }
16});