feat(fun/uggc): create a rot13 url handler

Example usage:
$ /nix/store/9kgpv4n62vhxs971jkvwvvl3msm4wpm8-uggc/bin/uggc 'uggcf://gjvggre.pbz/alnabgrpu/fgnghf/1272363652679524352'

Change-Id: I8fd5f77416116ce1a6ab7f96d3f2c726ef663677
Reviewed-on: https://cl.tvl.fyi/c/depot/+/386
Reviewed-by: tazjin <mail@tazj.in>
Reviewed-by: eta <eta@theta.eu.org>
This commit is contained in:
Kane York 2020-06-15 10:20:09 -07:00 committed by riking
parent 9885b70b7a
commit 2237a51d10
5 changed files with 94 additions and 0 deletions

23
fun/uggc/uggc.reg Normal file
View file

@ -0,0 +1,23 @@
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\uggc]
"URL Protocol"=""
@="URL:Rot13 HTTP URL Protocol"
[HKEY_CLASSES_ROOT\uggcf]
"URL Protocol"=""
@="URL:Rot13 HTTPS URL Protocol"
[HKEY_CLASSES_ROOT\uggc\shell]
[HKEY_CLASSES_ROOT\uggcf\shell]
[HKEY_CLASSES_ROOT\uggc\shell\open]
[HKEY_CLASSES_ROOT\uggcf\shell\open]
[HKEY_CLASSES_ROOT\uggc\shell\open\command]
@="\"C:\\Program Files\\uggc\\uggc.exe\" \"%1\""
[HKEY_CLASSES_ROOT\uggcf\shell\open\command]
@="\"C:\\Program Files\\uggc\\uggc.exe\" \"%1\""