AO3: highlight fandoms in user page

Highlight favourite fandoms on AO3 user dashboards

当前为 2021-04-11 提交的版本,查看 最新版本

作者
CertifiedDiplodocus
评分
0 0 0
版本
1.0
创建于
2021-04-11
更新于
2021-04-11
大小
6.7 KB
许可证
暂无
适用于

Make your favourite fandoms easy to see when visiting a user's dashboard. Choose any combination of the following:

  • mark as bold
  • highlight with a single colour
  • highlight specific fandoms with custom colours, overriding the default colour (e.g. "The Hobbit", "Indiana Jones", "Naruto")

You can add a fandom to the custom highlighting list without taking it off the main list, e.g.:

 let fandomsToHighlight = ["Original Work", "Critical Role", "Harry Potter", "Naruto", "Scooby Doo"]

 let fandomsInColour = {"Naruto":"orange"}

shows Naruto highlighted in orange.

The search matches any string which contains the search text:

"Sherlock" matches "Sherlock (BBC)", "Sherlock Holmes" and "Young Sherlock Holmes",

Use regular expressions such as "^" (string start) and "$" (string end) for more control:

"^Sherlock" matches "Sherlock Holmes" but not "Young Sherlock Holmes"

"^Star Trek$" matches only "Star Trek", not "Star Trek: The Original Series"

When adding fandoms to the list, take care to escape the following special characters with a backslash "\":

. + * ? ^ $ [ ] { } | \

e.g. for House M.D. write "House M\.D\."

Parentheses () cannot currently be escaped, not sure why. As a workaround, use the wildcard "." instead: for "The Avengers (Marvel)" write "The Avengers .Marvel."

The script is currently in beta. Please let me know of any bugs, and back up your configuration in case of updates.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址