all repos — save-forlater @ 415e0cbe3706c6d7f68cd1b6967776c3b698c4df

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

Init Chrome extension
Anirudh Oppiliappan x@icyphox.sh
Thu, 16 Sep 2021 21:00:14 +0530
commit

415e0cbe3706c6d7f68cd1b6967776c3b698c4df

parent

05a29e501b25cb2937446bc3ea3ff3a842d572b9

A chrome/forlater.js

@@ -0,0 +1,15 @@

+function saveForLater(info, tab) { + const tabURL = tab.url + const mailto = `mailto:save@forlater.email?&body=${tabURL}` + chrome.tabs.update({ + url: mailto, + }) +} + +chrome.action.onClicked.addListener(saveForLater) +chrome.contextMenus.create({ + 'title': "Send page to forlater", + 'contexts': ['all'], + 'id': 'save forlater menu' +}) +chrome.contextMenus.onClicked.addListener(saveForLater)
A chrome/manifest.json

@@ -0,0 +1,17 @@

+{ + "name": "save forlater", + "description": "Save a page via forlater", + "version": "1.0", + "manifest_version": 3, + "background": { + "service_worker": "forlater.js" + }, + "permissions": ["activeTab", "contextMenus", "background"], + "action": { + "default_icon": "icons/logo-48.png", + "default_title": "save forlater" + }, + "icons": { + "48": "icons/logo-48.png" + } +}
A readme

@@ -0,0 +1,5 @@

+save-forlater +------------- + +Firefox and Chrome extensions to save a page via forlater. Check the +releases page.