Change notification wording

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

< 腳本Change notification wording的回應

評論:正評 - 腳本一切正常

§
發表於:2024-07-02

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

發表回覆

登入以回復