您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides works where specified pairing isn't the first listed
As per the title, this script will show works that have the primary ship in the first tag. The difference between this and Neeve's script is that it automatically detects the primary pairing, little to no configuration needed. (See details below on the specifics.)
New in v1.20: The script now works with tag synonyms as well as subtags! (Looking at you, Dragon Age ship subtags...) Primary character tag detection is also enabled by default.
Navigate to a ship tag on AO3, for example: Astarion/Wyll (Baldur's Gate). The script will automatically detect the primary ship as "Astarion/Wyll" and will hide all other works where the ship tag is not the first listed.
If you want to change it so it shows works where the ship is in the first three, change the relpad
variable in the code to 3
.
The autodetection feature will not work if the current page is not a ship tag, ie, a fandom tag: Baldur's Gate (Video Games), or a character tag: Wyll (Baldur's Gate), or any other tag that is not a ship tag. The script will work on both "/" and "&" types of relationship tag.
To work with Neeve's original script behaviour of manually adding tags, see Advanced configuration section below.
The script will only display works that includes the current character tag in the first five tags. To change this behaviour, modify the value of the variable charpad
.
To disable this feature, change the value of the variable detectPrimaryCharacter
from true
to false
.
To work with Neeve's original script behaviour of manually adding tags, see Advanced configuration section below.
To make the primary pairing feature work on a non-ship tag page, add the ship names in the relationships
variable array, separated by commas, like so:
var relationships = ["Himeko/Kafka (Honkai: Star Rail)", "Lucina/Serena | Severa"];
To make the primary character feature work on a non-character tag page, add the ship names in the characters
variable array, separated by commas, like so:
var characters = ["Wyll (Baldur's Gate)", "Tartaglia | Childe (Genshin Impact)"];
Both manual configurations will work in tandem with auto-detection features (if enabled). Primary character autodetection does not need to be enabled to use manual configuration for characters.
Make sure to have a back up of these lines of code on your local files, as the entire script will be overwritten if you update it.
See Neeve's original script here.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址