您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Nexusmodsのスカイリム、フォールアウト4ページに、日本MODデータベースへのリンクを追加します
当前为
// ==UserScript== // @name Nexusmods skyrim&fallout japan database // @namespace mikanNsjd // @version 4.0 // @description Nexusmodsのスカイリム、フォールアウト4ページに、日本MODデータベースへのリンクを追加します // @author mikan-megane // @grant none // @include https://*.nexusmods.com/skyrim/mods/* // @include https://*.nexusmods.com/skyrimspecialedition/mods/* // @include https://*.nexusmods.com/fallout4/mods/* // ==/UserScript== (function () { var url = document.URL.match(/https?:\/\/(www|rd)?\.nexusmods\.com\/(skyrim(?:specialedition)?|fallout4)\/mods\/(\d+)(?:$|\/.+|\?.+)/); if (url !== null) { var el = url[1] == 'www' ? document.querySelector(".tabbed-buttons div:first-child") : document.querySelector(".modactions > li:first-child"); el.insertAdjacentHTML('beforebegin', url[1] == 'www' ? '<div class="action-button green"><a href="http://' + url[2] + '.2game.info/detail.php?id=' + url[3] + '">日本MODデータベースへ</a></div> ' : '<li id="action-jp"><a class="btn inline-flex" href="http://' + url[2] + '.2game.info/detail.php?id=' + url[3] + '"><span class="flag flag-Japanese" style="padding: 0.5em;padding-right: 15px;"></span> <span class="flex-label">日本語</span></a></li>'); } }());