Replace sentence-like wording from yt notifications with predictable, readable-at-a-glance text.
< 腳本Change notification wording的回應
我想使用中文,但是失敗了zh-Hant-TWzh-Hant------ const langs = { // The span stuff in the regexes prevents a bug where the notification text would get replaced recursively // The key must correspond to the lang attribute on the html tag "zh-Hant": { notifTitleText: "通知", video: /(?:.*<\/span>)?(?.*?) 上傳了新影片: (?.*)/, live: /(?:.*<\/span>)?(?<channel>.*?) 正在直播:(?<title>.*)/, premiere: /(?:.*<\/span>)?(?<channel>.*?) 正在首播: (?<title>.*)/, commentReply: /(?:.*<\/span>)?(?<user>.*?) 回覆: (?<comment>.*)/, commentLike: /(?:.*<\/span>)?👍 有人喜歡妳的留言: (?<comment>.*)/, }, };
登入以回復
我想使用中文,但是失敗了
zh-Hant-TW
zh-Hant
------
const langs = {
// The span stuff in the regexes prevents a bug where the notification text would get replaced recursively
// The key must correspond to the lang attribute on the html tag
"zh-Hant": {
notifTitleText: "通知",
video: /(?:.*<\/span>)?(?.*?) 上傳了新影片: (?.*)/,
live: /(?:.*<\/span>)?(?<channel>.*?) 正在直播:(?<title>.*)/,
premiere: /(?:.*<\/span>)?(?<channel>.*?) 正在首播: (?<title>.*)/,
commentReply: /(?:.*<\/span>)?(?<user>.*?) 回覆: (?<comment>.*)/,
commentLike: /(?:.*<\/span>)?👍 有人喜歡妳的留言: (?<comment>.*)/,
},
};