Update xcancel-culture.js
Added redirect for `x.com/home` to the appropriate place on `xcancel.com`
This commit is contained in:
parent
0874c6bc60
commit
3cf65f526a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user