Change notification wording

Replace sentence-like wording from yt notifications with predictable, readable-at-a-glance text.

< Feedback on Change notification wording

Review: Good - script works

§
Posted: 02-07-2024

我想使用中文,但是失敗了
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>.*)/,
},
};

Post reply

Sign in to post a reply.