Skip to content

Instantly share code, notes, and snippets.

@andre-paulo98
Last active September 26, 2023 12:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andre-paulo98/6d2cd3875d88c9435e2ab594a3f4d0dc to your computer and use it in GitHub Desktop.
Save andre-paulo98/6d2cd3875d88c9435e2ab594a3f4d0dc to your computer and use it in GitHub Desktop.
Redirect automatically from the old Minecraft Wiki (Fandom) to the new Wiki https://greasyfork.org/en/scripts/476065-redirect-to-new-minecraft-wiki
// ==UserScript==
// @name Redirect to New Minecraft Wiki
// @namespace https://gist.github.com/andre-paulo98/6d2cd3875d88c9435e2ab594a3f4d0dc
// @version 1.0
// @description Redirect automatically from the old Minecraft Wiki (Fandom) to the new Wiki
// @author andre-paulo98
// @match https://minecraft.fandom.com/wiki/*
// @icon https://minecraft.wiki/favicon.ico
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
// only move the english wiki
if((location.host + location.pathname).indexOf("minecraft.fandom.com/wiki") == 0) {
location.replace(location.protocol + "//minecraft.wiki" + location.pathname + location.search + location.hash);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment