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
Създаден
08.11.2022
Обновен
12.10.2025
Размер
4 КБ
Лиценз
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