Greasy Fork

Greasy Fork is available in English.

AO3: highlight tags V2

Configure tags to be highlighted with different colors

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Fangirlishness
日安装量
0
总安装量
459
评分
11 1 0
版本
2.0
创建于
2021-04-11
更新于
2021-04-11
大小
2.7 KB
许可证
暂无
适用于

Immediately see tags you love (or hate) by coloring them.

There is a configuration section in the script that you can edit to define your own tag patterns and the highlight colors. Your text may appear anywhere in the tag (but you can use regex to change that). Matching is case sensitive.

New feature in V2: if you only want to highlight tags of a certain kind, start your pattern with the kind of tag, then an exclamation mark, then your text. Possible starting values are "relationships!", "characters!", "freeforms!"

var tagsToHighlight = {"Alternate Universe": "#fda7d1", // pink
                       "Fanart": "#adf7d1", // light green
                       "somethingelse": "blue", // named colors work too
                       "^Hurt": "#038200", // only tags that start with Hurt
                       "Comfort$": "#038200", // only tags that end with Comfort
                       "relationships!Arthur": "red", // relationship tags that contain 'Arthur'
                       "Yuris Leclair \\| Yuri Leclerc": "yellow", // if names contain a '|' you must escape it with two backslashes
                       }; 

V2 of my previous script AO3: highlight tags. Posted as a separate script because the current way of configuring it would lose all your patterns on update.

Update instructions:

If you already have AO3: highlight tags v1.0, do the following:

  • install V2,
  • copy over your patterns from the old script (you can copy everything in the CONFIG section),
  • uninstall the old version