url-rewrite is an elisp library for rewriting URLs. Usecases include
redirecting to an random alternative client (e.g. invidious and
nitter), removing tracking queries (e.g. utm parameters), replace a
link by its redirect url which is encoded in one of its queries,
converting a zoom link to a dial-in number, etc, etc.
One way to use it would be utilising the collection of building block
functions for URL rewriting, like
Another, more streamlined usage would be:
- Declare rewriting rules in
- Then declare some ad-hoc rewriting functions and add them to
url-rw-extra-rewriters. An example is
(url-rw-refresh)to populate the rewrite function list
- The function
url-rwcan now be used on any url you wish to rewrite.