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