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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
escctrl
今日安裝
0
安裝總數
201
評價
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