Greasy Fork

AO3: Tag Hider

Hide tags automatically when there are too many tags. Add hide/show tags button to browsing page and reading page.

目前为 2019-01-21 提交的版本。查看 最新版本

作者
Vannius
评分
0 0 0
版本
1.91
创建于
2018-06-11
更新于
2019-01-21
大小
4.5 KB
许可证
MIT
适用于

Hide tags when there are too many tags automatically on AO3.
Add hide/show tags button to browsing page and reading page.

// Config
const MAX_TAGS_ON_BROWSING_PAGE = 15;
// When number_of_tags > 15, hide tags automatically on browsing page.
// if MAX_TAGS_ON_BROWSING_PAGE = 0, hide tags always on browsing page.

const MAX_TAGS_ON_READING_PAGE = 15;
// When number_of_tags > 15, hide tags automatically on reading page.
// if MAX_TAGS_ON_READING_PAGE = 0, hide tags always on browsing page.

// number_of_tags on reading page also include Rating, Archive Warning, Category and Fandom tags.