Skip to content

Instantly share code, notes, and snippets.

@Lenochxd
Created July 23, 2025 12:05
Show Gist options
  • Save Lenochxd/a8bb67db0aa6601cf705339623a57a13 to your computer and use it in GitHub Desktop.
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
// ==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