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

Configure tags to be formatted in different ways based on tag

Autor
mkp
Dnevne instalacije
0
Ukupno instalacija
133
Ocene
0 1 0
Verzija
1.1
Napravljeno
28/02/2022
Ažurirano
06/03/2022
Licenca
Nije dostupno
Važi za

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. This script does NOT interfere with the original highlight tags v2 script and in fact is designed to act in concert with it.

Example Use Cases:

  • Color all relationship tags blue and bold [specific relationship] tags to make your OTPs stand out
  • Make all warning tags that start with 'implied/referenced' italicized
  • Bold specific versions of a highlighted tag to make them stand out (ex: use the highlight tags v2 script to highlight all tags starting with 'alternate universe' the color teal and then use this script to bold your favorite types of AUs such as 'alternate universe - still have powers')

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 two examples 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