MCBBS PHP2HTML

convert URL

目前為 2022-12-17 提交的版本,檢視 最新版本

// ==UserScript==
// @name         MCBBS PHP2HTML
// @name:zh      MCBBS PHP转HTML网页
// @namespace    https://github.com/404.html
// @version      0.1
// @license      GPL-v3 or later
// @description  convert URL
// @author       H2B
// @match        *://www.mcbbs.net/*
// @icon         http://mcbbs.net/favicon.ico
// @grant        none
// @run-at document-start
// ==/UserScript==

(function() {
    'use strict';
    if (location.href.indexOf("mod=viewthread")>-1) {
        let usrk = new URL(location.href);
        let tid = usrk.searchParams.get("tid");
        let page = usrk.searchParams.get("page");
        if (page == null) page = "1";
        location.assign("https://www.mcbbs.net/thread-"+ tid +"-"+ page +"-1.html"+ location.hash);
    }
})();

QingJ © 2025

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