From 3cf65f526ac178d13bd8a00e037ad6a3125e5aff Mon Sep 17 00:00:00 2001 From: Jason Cosper Date: Sat, 19 Oct 2024 09:36:40 -0700 Subject: [PATCH] Update `xcancel-culture.js` Added redirect for `x.com/home` to the appropriate place on `xcancel.com` --- xcancel-culture.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xcancel-culture.js b/xcancel-culture.js index 111de76..787cdef 100644 --- a/xcancel-culture.js +++ b/xcancel-culture.js @@ -10,6 +10,12 @@ // ==/UserScript== window.addEventListener('load', function() { + // Redirect /home to xcancel.com directly + if (window.location.pathname === '/home') { + window.location.href = 'https://xcancel.com'; + return; + } + // Redirect to xcancel.com with the current path and query params var xcancelURL = window.location.href.replace(/https:\/\/([^.]+\.)?x\.com/, 'https://xcancel.com'); window.location.href = xcancelURL;