Greasy Fork is available in English.

Tixcraft Detail to Game URL

Open modified Tixcraft URLs in a new background tab by replacing 'detail' with 'game'

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.

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         Tixcraft Detail to Game URL
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Open modified Tixcraft URLs in a new background tab by replacing 'detail' with 'game'
// @match        https://tixcraft.com/activity/detail/*
// @grant        GM_openInTab
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // 獲取當前 URL
    const currentUrl = window.location.href;

    // 替換 'detail' 為 'game'
    const modifiedUrl = currentUrl.replace('/detail/', '/game/');

    // 如果修改後的網址和當前網址不同,則跳轉到新的網址
    if (currentUrl !== modifiedUrl) {
        window.location.replace(modifiedUrl);  // 重新導向到修改後的網址
    }
})();