Greasy Fork 支持简体中文。

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];
    //}
})();