software/hoardy-web/./extension/sanity.sh

Passively capture, archive, and hoard your web browsing history, including the contents of the pages you visit, for later offline viewing, replay, mirroring, data scraping, and/or indexing. Your own personal private Wayback Machine that can also archive HTTP POST requests and responses, as well as most other HTTP-level data.

Files

Raw Source

Contents

#!/bin/sh

sed -i -E '
# in all HTML tags, always put the `id` first
s%<([^!> ]+)(( [^=>]+(="[^">]*")?)*)( id="[^">]*")(( [^=>]+(="[^">]*")?)*)>%<\1\5\2\6>%g
' lib/* page/* background/* manifest-*