webrecorder / wombat

Wombat.js client-side rewriting library
GNU Affero General Public License v3.0
81 stars 31 forks source link

Allow wombat configuration to set its own rewriteURL function. #128

Closed mgautierfr closed 6 months ago

mgautierfr commented 6 months ago

If configuration contains a rewrite_function it will be used instead of the default one.

This use case is for warc2zim (https://github.com/openzim/warc2zim/pull/139) where we directly rewrite the url applying fuzzy matching. This would allow use to use wombat without a service worker.

ikreymer commented 6 months ago

Not something that can be officially supported/tested, but this hook should be sufficient for custom on-your-own-rewriting.