glide: Redirect x.com to xcancel.com
Assisted-by: Claude Opus 4.5 via Claude Code
diff --git a/.config/glide/glide.ts b/.config/glide/glide.ts
index 945fe146..5b86b84a 100644
--- a/.config/glide/glide.ts
+++ b/.config/glide/glide.ts
@@ -55,6 +55,13 @@ 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() });
+});
+
glide.styles.add(`
.yank-notification {
position: fixed;