Create a script that adapts the Tor Browser manual HTMLs to work in Tor Browser

We need a script that adjusts the Tor Browser manual HTMLs:

  1. Change the Content Security Policy to use chrome: (only?).
  2. Strip out <script> and add our own <script> that points to a script maintained in tor-browser.
  3. Replace heading ids (?).
  4. Replace href and src attributes to use chrome: paths.

Note, some of this overlaps with olm.js from tpo/web/marble/support!94 (merged), but we want to reproduce them or do them differently. See my comments in that merge request.

See tpo/web/marble/support#108 (closed)

Edited by henry