diff options
author | Yuchen Pei <id@ypei.org> | 2023-10-30 21:41:14 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-10-30 21:41:14 +1100 |
commit | 9bc9e59f41f27ddaeb18cbe08a41b78c5e900f46 (patch) | |
tree | a0b94b04a6b7ec57669ac4067cd07434b55bf841 /README.org | |
parent | 72b21f87cac985035c8d6c451a42e64b56a85524 (diff) |
Documentation and license.
Diffstat (limited to 'README.org')
-rw-r--r-- | README.org | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/README.org b/README.org new file mode 100644 index 0000000..4d61cd9 --- /dev/null +++ b/README.org @@ -0,0 +1,46 @@ +#+title: url-rewrite +#+author: Yuchen Pei +#+language: en + +* Introduction + :PROPERTIES: + :UPDATED: [2023-10-30 Mon 21:40] + :END: + +~url-rewrite~ is an elisp library for rewriting URLs. Usecases include +redirecting to an random alternative client, removing tracking +queries, converting a zoom link to a dial-in number etc. + +* Usage + :PROPERTIES: + :UPDATED: [2023-10-30 Mon 21:41] + :END: + +One way to use it would be utilising the collection of building block +functions for URL rewriting, like ~url-rw-replace-random-host~ and +~url-rw-remove-query~. + +Another, more streamlined usage would be: + +1. Declare rewriting rules in ~url-rw-rules~ (see + ~url-rw-example-rules~ for example) + +2. Then declare some ad-hoc rewriting functions and add them to + ~url-rw-extra-rewriters~. An example is + ~url-rw-example-zoom-to-dial~. + +3. Eval ~(url-rw-refresh)~ to populate the rewrite function list + ~url-rw-rewriters~. + +4. The function ~url-rw~ can now be used on any url you wish to + rewrite. + +* Copyright and contact + :PROPERTIES: + :UPDATED: [2023-10-30 Mon 21:39] + :END: + +~url-rewrite~ is maintained by Yuchen Pei <id@ypei.org> and covered by +[[https://www.gnu.org/licenses/agpl-3.0.en.html][GNU AGPLv3+]]. You may find the license text in a file named +COPYING.agpl3 in the project tree. For comments, bug reports or +patches, please use the mailing list [[https://lists.sr.ht/~ycp/gym][~ycp/gym@lists.sr.ht]]. |