glide,hammerspoon: RIP xcancel
diff --git a/.config/glide/glide.ts b/.config/glide/glide.ts
index e41d979d..f583fcf3 100644
--- a/.config/glide/glide.ts
+++ b/.config/glide/glide.ts
@@ -81,13 +81,6 @@ glide.autocmds.create("UrlEnter", { hostname: "www.reddit.com" }, async () => {
await browser.tabs.update({ url: url.toString() });
});
-// x -> xcancel
-glide.autocmds.create("UrlEnter", { hostname: "x.com" }, async () => {
- const url = new URL(glide.ctx.url);
- url.hostname = "xcancel.com";
- await browser.tabs.update({ url: url.toString() });
-});
-
// strip tracking params (rewrites the request before it fires, no reload)
// forEach avoids Symbol.iterator, which Xray vision denies on cross-compartment values.
const trackingParams = ["utm_*", "uta_*", "fbclid", "gclid"];
diff --git a/.hammerspoon/init.fnl b/.hammerspoon/init.fnl
index fb532d45..ab52d068 100644
--- a/.hammerspoon/init.fnl
+++ b/.hammerspoon/init.fnl
@@ -132,8 +132,7 @@
url-patterns [["^https://(.*%.?)zoom.us/j/%d+" handlers.zoom]
[safari-patterns handlers.safari]]
url-redir-decoders [[:trurl-sanitize #(sanitize-url $4) nil true]
- [:reddit "://www%.reddit%.com" "://old.reddit.com"]
- [:xcancel "://x%.com" "://xcancel.com"]]]
+ [:reddit "://www%.reddit%.com" "://old.reddit.com"]]]
(Install:andUse :URLDispatcher {:config {:url_patterns url-patterns
:url_redir_decoders url-redir-decoders
:default_handler little-ff.open