JumpToNewMinecraftWiki

J2n_MC_wiki - 新·我的世界中文wiki跳转|刷新界面|重定向Fandom的url

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         JumpToNewMinecraftWiki
// @author       萌萌哒丶九灬书
// @description  J2n_MC_wiki - 新·我的世界中文wiki跳转|刷新界面|重定向Fandom的url
// @namespace    https://space.bilibili.com/1501743
// @license      GNU General Public License v3.0
// @version      0.0.3
// @create       2023-11-11
// @lastmodified 2023-11-12
// @include      /^https?:\/\/zh\.minecraftwiki\.net/
// @include      /^https?:\/\/minecraft\-zh\.gamepedia\.com/
// @include      /^https?:\/\/minecraft\.fandom\.com/
// @mainpage     https://greasyfork.org/zh-CN/scripts/479549/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    (window.location.pathname.substr(0,3)=='/zh')?((window.location.pathname.substr(8)=='/Minecraft_Wiki')?(window.location.replace(`https://zh.minecraft.wiki/`)):(window.location.replace(`https://zh.minecraft.wiki/w${window.location.pathname.substr(8)}/`))):((window.location.pathname.substr(5)=='/Minecraft_Wiki')?(window.location.replace(`https://minecraft.wiki/`)):(window.location.replace(`https://minecraft.wiki/w${window.location.pathname.substr(5)}/`)));
})();