您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在巴哈右鍵點擊發文者連結,瀏覽作者同版發文
// ==UserScript== // @name 巴哈瀏覽作者同版發文 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 在巴哈右鍵點擊發文者連結,瀏覽作者同版發文 // @author Rplus // @match https://m.gamer.com.tw/forum/*.php?* // @match https://forum.gamer.com.tw/*.php* // @grant none // ==/UserScript== (function() { let isMobile = !/forum/.test(location.host); let bsn = new URLSearchParams(location.search)?.get('bsn'); function getUid(a) { if (!a) { return false; } if (isMobile) { // https://m.gamer.com.tw/home/home.php?owner=*** return (new URLSearchParams(a.search))?.get('owner'); } else { // .userid // .username // .reply-content__user // https://home.gamer.com.tw/*** if (a.matches('.userid, .username, .reply-content__user')) { return a.href.replace('https://home.gamer.com.tw/', ''); } return false; } } document.body.addEventListener('contextmenu', e => { let a = e.target.closest('a'); let uid = getUid(a); if (bsn && uid) { const url = `https://forum.gamer.com.tw/Bo.php?bsn=${bsn}&qt=6&q=${uid}`; const ans = window.confirm(`Go to ${url}?`); if (ans) { e.preventDefault(); window.open(url, null, 'noopener,noreferrer'); } } }) })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址