MWI Price History Viewer Modified - 银河牛牛商城中物品价格走势小助手

(网页版和手机版均适配,API数据获取可能需翻墙)支持1天、3天、7天、14天、30天价格走势图;“更新价格数据Update Data”按钮一次性获取近30日数据(约720条),不弹出图表;图表弹窗基于全量数据进行数据清洗、移动平均计算及趋势线显示(默认隐藏);记录用户选择的日期范围和图例显示状态;网页版为悬浮窗,手机版为弹窗全屏旋转90°展示,右上角有退出按钮。

< 脚本MWI Price History Viewer Modified - 银河牛牛商城中物品价格走势小助手的反馈

评价:好评 - 脚本运行良好

§
发表于:2025-03-19

估计之前提到的bug出现的原因是获取数据出现连接错误,报错如下:

Uncaught TypeError: Cannot read properties of undefined (reading 'ignoreNextEvents')
    at Object.afterEvent (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:37:3173)
    at d (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:14:1113)
    at sn._notify (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:20:83179)
    at sn.notify (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:20:83000)
    at An.notifyPlugins (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:20:101982)
    at An._eventHandler (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:20:102639)
    at s (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:20:100518)
    at An.<anonymous> (userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:20:43519)
    at userscript.html?name=MWI-Price-History-Viewer-Modified-%25E9%2593%25B6%25E6%25B2%25B3%25E7%2589%259B%25E7%2589%259B%25E5%2595%2586%25E5%259F%258E%25E4%25B8%25AD%25E7%2589%25A9%25E5%2593%2581%25E4%25BB%25B7%25E6%25A0%25BC%25E8%25B5%25B0%25E5%258A%25BF%25E5%25B0%258F%25E5%258A%25A9%25E6%2589%258B.user.js&id=77992bf3-53ca-4c62-88cf-3de280ff1353:14:5410

但这要之后再点击获取数据更新时会报这样的bug:

Failed to get subsystem status for purpose 
{rejected: true, message: 'UNSUPPORTED_OS'}

需要反复刷新网页才有概率修复,希望可以修正其中部分逻辑使得即使更新失败也可以通过重新点击更新按钮自行修正

§
发表于:2025-03-19
编辑于:2025-03-19

更新一下debug情况,该bug的产生和获取数据更新无关,完全是因为我的屏幕是21:9,最大化窗口的情况下必定报错,手动缩小窗口宽度就不报错,希望能改进一下对超宽屏的适配

发表回复

登录(不可用)以发表回复。

QingJ © 2025

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