AO3: format tags (fan variation of AO3: highlight tags)

Configure tags to be formatted in different ways based on tag

当前为 2022-02-28 提交的版本,查看 最新版本

作者
mkp
评分
0 0 0
版本
1.0
创建于
2022-02-28
更新于
2022-02-28
大小
4.4 KB
许可证
暂无
适用于

This script is an authorized variation/spin-off of Fangirlishness's amazing highlight tags v2 script! It is meant to provide additional options to the user and can easily work in conjunction with the original script. It does, however, require some active work on the part of the user in order to get full value out of it. (See recommended resources.)

This script allows you to specify the format applied to a particular tag or tag pattern* (using regex). Currently supported formatting options are font-weight, font-style, and (font) color.

By default, the search is case-insensitive. The search can distinguish by tag type - if you only want to format tags of a certain kind, start with with the kind of tag, then an exclamation mark, then your text. Possible starting values are "relationships!", "characters!", "freeforms!"

*Please note that any specific tag pattern can only be given ONE format attribute - however, this can be worked-around by installing additional copies of this script with other formatting options

The attached screenshots include an example of a configured script as it looks in the script editor and an example of this script working in conjunction with the highlight tags v2 script along with two other examples of the configured script at work.

Recommended Resources:

  • A javascript-specific regular expression syntax cheat sheet
  • List of CSS font properties
  • List of HTML color codes