Merge pull request #177 from JohnsonRan/adblockbtn

chore: more understandable AD block button
This commit is contained in:
senshinya
2025-07-16 18:52:00 +08:00
committed by GitHub

View File

@@ -1145,9 +1145,9 @@ function PlayPageClient() {
},
settings: [
{
html: blockAdEnabled ? '关闭去广告' : '开启去广告',
html: '去广告',
icon: '<text x="50%" y="50%" font-size="20" font-weight="bold" text-anchor="middle" dominant-baseline="middle" fill="#ffffff">AD</text>',
tooltip: blockAdEnabled ? '当前开启' : '当前关闭',
tooltip: blockAdEnabled ? '开启' : '关闭',
onClick() {
const newVal = !blockAdEnabled;
try {