巴哈姆特之查詢該使用者本看板發文

直接查該作者的其他文章,省去查詢時間

目前為 2021-09-24 提交的版本,檢視 最新版本

// ==UserScript==
// @name         巴哈姆特之查詢該使用者本看板發文
// @description  直接查該作者的其他文章,省去查詢時間
// @namespace    nathan60107
// @version      1.0
// @author       nathan60107(貝果)
// @homepage     https://home.gamer.com.tw/homeindex.php?owner=nathan60107
// @match        *forum.gamer.com.tw/C*
// @icon         https://www.google.com/s2/favicons?domain=gamer.com.tw
// @run-at       document-end
// @noframes
// ==/UserScript==

(function() {
    let bsn = window.location.href.match(/.*bsn=(\d+).*/)[1]
    for(let user of jQuery(".c-post__header__author")){
        let uid = jQuery(user).find(".userid")[0].innerText
        jQuery(user).append(`
<a class="floor tippy-gpbp" data-tooltipped="" data-original-title="本板發文" href="https://forum.gamer.com.tw/Bo.php?bsn=${bsn}&qt=6&q=${uid}">
    本板發文
</a>
`)
    }
})();

QingJ © 2025

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