Always desktop bahamut

Redirect mobile bahamut to desktop

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey 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 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.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

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==
// @author	craftwar
// @name 	Always desktop bahamut
// @name:zh-TW 巴哈姆特重導到桌面版網站
// @description	Redirect mobile bahamut to desktop
// @description:zh-TW	重導到巴哈姆特桌面版網站
// @namespace github.com.craftwar
// @include	https://m.gamer.com.tw/*
// @version	24.1.7
// @grant	none
// ==/UserScript==
'use strict';
(() => {
	const m = /^https:\/\/m\.gamer\.com\.tw\/((?:gnn)|(?:home))\/(.+)/.exec(window.location.href);
	if (m)
		window.location.replace("https://" + m[1] + ".gamer.com.tw/" + m[2]);
})();