AO3: [Wrangling] Mark Illegal Characters in Canonicals

Warns about any canonical tag that includes characters which should, per guidelines, be avoided. Checks on new tag, edit tag, search results, wrangle bins, and tag landing pages

目前為 2023-11-02 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
escctrl
評價
0 0 0
版本
1.3
建立日期
2023-07-29
更新日期
2023-11-02
尺寸
13.4 KB
授權條款
MIT
腳本執行於

This script flags canonical tags, if they include any characters that shouldn't be used, per wrangling guidelines.
It checks fandom canonicals differently, since those may contain other language scripts for the original fandom titles.

The pages and tags checked are:

  • New Tag: Checks as you type, and also warns if you're exceeding 100 chars. If Fandom is selected as the tag type, the checker switches to the fandom-specific allowed characters
  • Search Tag: Checks all canonicals in search results. Works both in vanilla search and with the script turning results into a table
  • Tag landing page: Checks the viewed tag itself (if canonical) as well as all metatags and subtags listed on the page. Does NOT check Parent tags.
  • Edit Tag: Checks the viewed tag itself (if canonical, or if you're checking the checkbox to make it canonical), the canonical it's synned to, all fandoms, metatags, subtags, and linked characters.
  • Wrangle pages in a bin: In the table, checks the tag (if canonical), and any listed canonical it's synned to, metatags, subtags, and linked characters.

Allowed Characters:

  • All tags: latin letters, latin numbers, space, hyphen, dot, brackets, forward slash, ampersand, pipe, single quote, double quote.
  • Additionally, although guidelines says to avoid them, because they're often in use: colon, exclamation mark.
  • Additionally in fandom tags: any script letter, any script number, any script tone mark, hash, question mark, underscore.

Additionally it'll warn if two single quotes '' are used instead of a double quote ", if the tag has a space at the beginning or end, or if multiple spaces follow each other.

If I forgot anything, please don't hesitate to contact me and I'll update the regex.

If you'd like to disable checks on a particular page, you can comment out (add two forward slashes // at the beginning of the line) the corresponding line in the code, at line#21 through line#25.