Created
July 23, 2025 12:05
-
-
Save Lenochxd/a8bb67db0aa6601cf705339623a57a13 to your computer and use it in GitHub Desktop.
Automatically redirects any page on the old fandom.com Isaac wiki to the new wiki.gg domain while preserving the path and anchor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Isaac Wiki Redirector | |
// @version 1.0 | |
// @description Redirects from fandom.com Isaac wiki to wiki.gg | |
// @match https://bindingofisaacrebirth.fandom.com/* | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const currentUrl = window.location.href; | |
// Replace domain | |
const newUrl = currentUrl.replace( | |
/^https:\/\/bindingofisaacrebirth\.fandom\.com/, | |
'https://bindingofisaacrebirth.wiki.gg' | |
); | |
// Redirect only if different | |
if (currentUrl !== newUrl) { | |
window.location.replace(newUrl); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment