您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Mark all as read
// ==UserScript== // @name Bahamut mail mark all as read // @namespace https://blog.maple3142.net/ // @version 0.1 // @description Mark all as read // @author maple3142 // @match https://mailbox.gamer.com.tw/ // @grant none // @compatible firefox >=52 // @compatible chrome >=55 // ==/UserScript== (function($) { 'use strict' const read=sn=>Promise.resolve($.post('https://mailbox.gamer.com.tw/ajax/unreadRead.php',{sn})) $('#delFrm').before($('<button>').text('全部標記已讀').click(()=>{ const $titles=$('.mailTitle') const sns=$titles.map((i,e)=>$(e).data('sn')).toArray() Promise.all(sns.map((sn,i)=>read(sn).then(()=>$($titles[i]).parent().parent().parent().remove()))).then(()=>console.log('ok')) })) })(jQuery)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址