AO3: [Wrangling] When did I last wrangle?

turns the last wrangled date into a "X days ago" message, and highlights it if more than 10 days ago

当前为 2024-09-29 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
escctrl
评分
0 0 0
版本
1.2
创建于
2023-06-10
更新于
2024-09-29
大小
6.9 KB
许可证
MIT
适用于

Takes the date/time when you last wrangled, and turns it into a message of "X days ago", so you don't have to do the math.
The calculation rounds to the closest full day: if you wrangled 5 hours ago, it'll show 0 days. If you wrangled 18 hours ago, it's already showing as 1 day ago.

The "X days ago" message has a tooltip where it'll show the date/time that Ao3 provided, because the script also removes the usual text above the table of assigned fandoms.

Once you've hit 10 days, the highlight goes from gray to red, to alert you that you're coming close to the allowed 2-week maximum.

PS: Timezones are a mess. If you notice anything wonky with the day calculation, let me know. Your selected timezone might be unrecognized because it's missing off the list in the script, then the scripts treats it as UTC.

Known Issues: If you're running a script that tries to write into the "Fandoms assigned to you..." paragraph at its beginning, this script might inadvertently remove what the other script added. Try commenting out (adding two forward slashes //) code lines #24 through #27. If your other script adds stuff to that paragraph at its end, it isn't affected.