Last.fm Original Tag Chart

restores legacy "subway" style tag chart on new last.fm report pages

当前为 2024-01-26 提交的版本,查看 最新版本

作者
Nathan Blume
评分
0 0 0
版本
1.4
创建于
2024-01-20
更新于
2024-01-26
大小
15.8 KB
许可证
MIT
适用于

Description

This userscript runs on new-style (dark) report pages on Last.fm and restores the old "subway map" chart for weekly, monthly, and yearly reports. It does not run on the older style pages, which currently retain the "subway map" chart.

Notes

For some reason, the table of top tags in the new style report pages doesn't always contain 5 tags for each date. There isn't a good way to determine the missing tags so there may be missing nodes in the chart.

Technical Details

The chart is built using d3 v4 and a hand-made recreation of the original SVG chart layout. The original charts are made using highcharts, but I was unable to find a way to utilize that engine in the browser. I think d3 was able to reproduce it adequately. It also utilizes jquery, jquery-address, and wait-for-key-elements.

To Do

  • Check touchscreen compatibility
  • Find a way to determine missing tags

QingJ © 2025

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