Skip to content

dineshdb/readlater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

readlater:// logo

readlater://save?url=https://example.org&tags

A protocol handler that will save any articles it receives to getpocket.

Supported Features

This supports handling readlater://save?url=<url>&title=<title>&tags=<tags> without installing web extension. If you install the webextension, it provides additional features such as:

  • toolbar button to save current url to pocket by clicking it.

Alternatively, you can use bookmarket to add items to the getpocket. Or just paste properly formatted link to url bar.

Setup

  • Install the binary cargo install --git https://github.com/dineshdb/readlater
  • Register protocol handler and WebExtension native-host readlater register
  • Provide Pocket authentication POCKET_CONSUMER_KEY, POCKET_ACCESS_TOKEN via env variable.

Test

Visit the hosted version of this page and then click this link to add the this repo url to pocket using readlater://.

Bookmarklet

javascript: (function () {
  var currentUrl = encodeURIComponent(window.location.href);
  var tags = prompt("Enter tags (comma-separated):", "");
  if (tags !== null) {
    var encodedTags = encodeURIComponent(tags);
    var url = `readlater://save?url=${currentUrl}&tags=${encodedTags}`;
    window.location.href = url;
  }
})();

Roadmap

  • Protocol Handler
  • Native Host and Protocol handler
    • Linux protocol handler for readlater://save?url=<url>&title=<title>&tags=<tags>
    • Save new urls to Pocket
    • Save links to pocket even when offline
      • Local cache of remote data
      • Queue of save actions and background sync
    • Tag imdb links as watchlater
    • Tag archived imdb links as watched
    • Tag youtube links as watchlater
  • WebExtension
    • Add a readlater:// button that saves current tab pocket
    • Release the web extension
    • Change toolbar icon based on result
    • Firefox(on Linux) Support
    • Keyboard shortcut (Ctrl+Shift+L)
    • SideView with local cached data
    • Add browser bookmarks to pocket with #bookmark tag
    • Insert readlater:// links in web pages for easier saving to readlater://
    • Support for Chrome and Chromium based browsers
  • CI
    • Tests
    • Release Binaries on Github packages
    • Add a install script
  • Get access token from keyring or readlater.conf
  • Get access token via login
  • Decouple it from Pocket and make it pluggable.

License

MIT

About

readlater:// protocol handler and webextensions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published