diff --git a/xcancel-culture.js b/xcancel-culture.js new file mode 100644 index 0000000..563b027 --- /dev/null +++ b/xcancel-culture.js @@ -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);