AO3: Jump to a Random Work

adds a "Random Work" button (top right corner) when viewing works or bookmarks - shows up in a tag/filter and your Marked For Later list

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
escctrl
日安装量
0
总安装量
205
评分
3 1 0
版本
1.1
创建于
2022-11-08
更新于
2025-10-12
大小
3.5 KB
许可证
MIT
适用于

💖 What it does

Takes you to a random work from within your Marked For Later, bookmarks, or a works listing.

🪴 How to use it

This script adds a "Random Work" button (top right of the page, underneath the header)

  • on the works page of a tag
  • on the bookmarks page of a tag
  • on your own bookmarks (if you're logged in to your AO3 account)
  • on your Marked For Later list (if you're logged in to your AO3 account)

Clicking the button will redirect you to a random work from the list. If you've used filter criteria, the random work will be selected from within the filter.

🐞 Known limitations

The page reloads the current tab with the random work. If you want it to open in a new tab instead, you can replace the line window.location.assign(path); at the end of the code with window.open(path, '_blank').focus();. Fair warning, this might trigger your popup blocker or try to open in a new browser window instead of a tab. That's all down to browser behavior.

🏛️ History

  • v1 - added support for bookmark pages
  • v0.2 - added support for Marked for Later
  • v0.1 - initial functionality: works pages