您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
可以在C頁文章頁面確認子板,無須回到B頁文章列表查看。
// ==UserScript== // @name 巴哈姆特之C頁文章顯示子板 // @description 可以在C頁文章頁面確認子板,無須回到B頁文章列表查看。 // @namespace nathan60107 // @version 2.5 // @author nathan60107(貝果) // @contributor moontai0724(我是月太 づ(・ω・)づ) // @homepage https://home.gamer.com.tw/homeindex.php?owner=nathan60107 // @include https://forum.gamer.com.tw/C* // @run-at document-end // @noframes // ==/UserScript== (function(){ jQuery('head').append('<style type="text/css"> .tag-category_item { display:none!important; } </style>>') let bsn = window.location.href.match(/.*[^b]bsn=(\d+).*/)[1] let subbsn = jQuery(".more .tippy-option-menu").data("tippy")["subbsn"] function expand_title(target, subbsn_name){ jQuery(target).text(`《${subbsn_name}》${jQuery(target).text()}`) } function add_subbsn(data){ let subbsn_name = jQuery(data).find(`.b-tags__item a[href$="${bsn}&subbsn=${subbsn}"]`).text() expand_title(".c-post__header__title", subbsn_name) expand_title(".c-disable__title", subbsn_name) expand_title(".title", subbsn_name) } jQuery.get({ url: `https://forum.gamer.com.tw/B.php?bsn=${bsn}`, success: add_subbsn, }) })();