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

作者
escctrl
日安装量
0
总安装量
199
评分
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