Add xcancel-culture.js
This commit is contained in:
parent
8d2890fc5a
commit
d6dc809c48
16
xcancel-culture.js
Normal file
16
xcancel-culture.js
Normal file
@ -0,0 +1,16 @@
|
||||
// ==UserScript==
|
||||
// @name Xcancel Culture
|
||||
// @namespace https://github.com/boogah/userscripts
|
||||
// @version 2024.10.19
|
||||
// @description Automatically redirects x.com to xcancel.com.
|
||||
// @author boogah
|
||||
// @include https://*.x.com/*
|
||||
// @license GPL-2.0
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
// 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;
|
||||
}, false);
|
Loading…
x
Reference in New Issue
Block a user