cel committed Implement offline browsing "last" modeLatest: 8905bee on 12/17/2019, 4:20:57 AM | |
📄 | LICENSE |
📄 | Makefile |
📄 | README.md |
📄 | dillo-patch.diff |
📄 | history.filter.dpi |
dillo-history
Persistent history saving for Dillo.
This project contains:
- A patch for dillo to make it save each resource from its cache to disk, and record entries in a history file.
- A plugin for dillo to view the history file and its entries.
The history file is ~/.dillo/history.txt
and its format is TSV. Each entry contains a timestamp, SHA256 content hash, and URL.
The plugin serves requests of the form history:[<limit>][/<pattern>]
where <limit>
is the number of entries to show (default is 35) and <pattern>
is a regex to grep for the history files (for URL, hash, and/or timestamp) (default is to show all entries).
The plugin also serves request of the form last:<url>
, or last-<url>
for schemas http
and https
. These are served with the contents of the last blob recorded for the given URL (with the "last:" or "last-" prefix removed). This is effectively an offline browsing mode. Relative URLs work when using the "last-" prefix but not with the "last:" prefix.
Screenshot
The content hashes are in SSB blob format: &XXX.sha256
) where XXX is the content hash in base64. Their contents are saved as files in SSB's blob store at ~/.ssb/blobs/sha256/XX/XXXX...
where XXXXX...
is the content hash in hexadecimal, lowercase.
Install
Install the plugin with make install && dpidc stop
.
Install the patch by downloading Dillo's source code, applying the patch and compiling dillo.
License
MIT
Built with git-ssb-web