Old nexusmods Games UI

18.03.2025, 16:15:36

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Old nexusmods Games UI
// @namespace   Violentmonkey Scripts
// @match       https://www.nexusmods.com/*
// @grant       none
// @version     1.4
// @author      Artyom104
// @description 18.03.2025, 16:15:36
// @license MIT
// @run-at document-start
// ==/UserScript==

(function() {
    'use strict';
    return; // disable script because it doesn't work any more since nexus devs removed old UI

    const currentUrl = window.location.href;
    const nexusmodsUrl = "https://www.nexusmods.com/";
    const nexusmodsNewGamesUrl = nexusmodsUrl + "games/"

    if (currentUrl.startsWith(nexusmodsNewGamesUrl) && !currentUrl.includes("collections") && !currentUrl.includes("?")) {
        const gameName = currentUrl.substring(nexusmodsNewGamesUrl.length);
        // window.location.href = nexusmodsUrl + gameName;
        window.location.replace(nexusmodsUrl + gameName);
    }
})();