THBWiki跳过简单对话

为方便校对翻译,直接转到中日对照页面

安装此脚本?
作者推荐脚本

您可能也喜欢THBWiki复制短链接

安装此脚本
// ==UserScript==
// @name         THBWiki跳过简单对话
// @namespace    https://thdog.moe/
// @version      0.1.0
// @description  为方便校对翻译,直接转到中日对照页面
// @author       shirokurakana
// @match        https://thwiki.cc/*
// @run-at     document-start
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    var url = decodeURI(document.location.toString());
    var m = null;
    var wikipath = null;
    // https://thwiki.cc/游戏对话:东方兽王园/博丽灵梦
    if( (m = url.match(/^https?:\/\/(?:.*?)thwiki\.cc\/(.+)\??.*$/i)) ) {
        wikipath = m[1];
        if(wikipath.match(/^游戏对话:/)){
            if(wikipath.match(/中日对照/)){
               return;
            }
            document.location = "https://thwiki.cc/"+wikipath+"/中日对照";
        }
    }
    //if( (m = url.match(/^https?:\/\/(?:.*?)thwiki\.cc\/index.php\?title=(.+)&.*?$/i)) ) {
        //wikipath = m[1];
    //}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址