您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自動展開巴哈姆特哈拉區、GNN新聞文章底下所有留言
// ==UserScript== // @name 巴哈姆特-自動展開留言 // @namespace https://github.com/jlhg/userscript // @license MIT // @version 0.2.2 // @description 自動展開巴哈姆特哈拉區、GNN新聞文章底下所有留言 // @author jlhg // @homepage https://github.com/jlhg/userscript // @supportURL https://github.com/jlhg/userscript/issues // @match https://forum.gamer.com.tw/C.php* // @match https://forum.gamer.com.tw/Co.php* // @match https://gnn.gamer.com.tw/detail.php* // @grant none // ==/UserScript== (function() { 'use strict'; function waitElement(selector) { return new Promise(resolve => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver(mutations => { if (document.querySelector(selector)) { observer.disconnect(); resolve(document.querySelector(selector)); } }); observer.observe(document.body, { childList: true, subtree: true }); }); } switch (window.location.host) { case "forum.gamer.com.tw": document.querySelectorAll("[id^=showoldCommend_]") .forEach((el) => el.click()); break; case "gnn.gamer.com.tw": waitElement('#comment a[href^="javascript:get_all_comment"]').then((e) => { eval($(e).attr('href').split(':')[1]); }); break; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址