Greasy Fork

Greasy Fork is available in English.

To Japanese Mods Database

SteamのRimWorldワークショップ、NexusmodsのSkyrim、Fallout、MB2 Bannerlordページに、日本語MODデータベースへのリンクを追加します

当前为 2020-04-18 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        To Japanese Mods Database
// @namespace   mikanNsjd
// @version     5.0
// @description SteamのRimWorldワークショップ、NexusmodsのSkyrim、Fallout、MB2 Bannerlordページに、日本語MODデータベースへのリンクを追加します
// @author      mikan-megane
// @grant       none
// @include     https://*.nexusmods.com/skyrim/mods/*
// @include     https://*.nexusmods.com/skyrimspecialedition/mods/*
// @include     https://*.nexusmods.com/fallout4/mods/*
// @include     https://*.nexusmods.com/fallout76/mods/*
// @include     https://*.nexusmods.com/mountandblade2bannerlord/mods/*
// @include     https://steamcommunity.com/sharedfiles/filedetails/*
// ==/UserScript==
(function () {
    var url;
    if (location.hostname === 'steamcommunity.com') {
        if (document.querySelector('.apphub_AppName').textContent === 'RimWorld') {
            url = location.search.match(/id=(\d+)/);
            if (url !== null) {
                document.querySelector('#rightContents .sidebar').insertAdjacentHTML('beforebegin', '<div class="panel"><a class="btnv6_blue_hoverfade btn_medium" target="_blank" href="https://rimworld.2game.info/detail.php?id=' + url[1] + '"><span>RimWorld Mod データベース</span></a></div>');
            }
        }
    } else {
        url = location.pathname.match(/(.*)\/mods\/(\d+)/);
        if (url !== null) {
            document.querySelector(".modactions > li:first-child").insertAdjacentHTML('beforebegin', '<li id="action-jp"><a class="btn inline-flex" href="http://' + url[1] + '.2game.info/detail.php?id=' + url[2] + '"><span class="flag flag-Japanese" style="padding: 0.5em;padding-right: 15px;"></span> <span class="flex-label">日本語</span></a></li>');
        }
    }
}());