巴哈姆特之C頁文章顯示子板

可以在C頁文章頁面確認子板,無須回到B頁文章列表查看。

目前為 2021-10-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name         巴哈姆特之C頁文章顯示子板
// @description  可以在C頁文章頁面確認子板,無須回到B頁文章列表查看。
// @namespace    nathan60107
// @version      2.0
// @author       nathan60107(貝果)
// @contributor  moontai0724(我是月太 づ(・ω・)づ)
// @homepage     https://home.gamer.com.tw/homeindex.php?owner=nathan60107
// @include      https://forum.gamer.com.tw/C*
// @noframes
// ==/UserScript==

(function(){
    let bsn = window.location.href.match(/.*bsn=(\d+).*/)[1]
    let subbsn = jQuery(".more .tippy-option-menu").data("tippy")["subbsn"]

    function add_subtitle_name(data){
        let subbsn_name = jQuery(data).find(`.b-tags__item a[href*="${bsn}&subbsn=${subbsn}"]`).text()
        let title = jQuery(".c-post__header__title ").text()
        jQuery(".c-post__header__title ").text(`《${subbsn_name}》${title}`)
    }

    jQuery.get({
        url: `https://forum.gamer.com.tw/B.php?bsn=${bsn}`,
        success: add_subtitle_name,
    })
})();

QingJ © 2025

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