欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

去除群晖NAS桌面和控制面板的小红点更新提示

程序员文章站 2024-01-16 21:41:28
...

遇到几个奇葩的群友,看不惯有红点提示,非要弄掉(因为是黑裙,所以不能轻易升级系统)。
下面给出一个简单粗暴的方法,那就是把小红点图片换掉!换掉!换掉!

SSH登录群晖,这个不多说,下面的命令拷贝执行即可

# 1、处理控制面板里面系统升级的小红点
cp /usr/syno/synoman/webman/modules/AdminCenter/images/default/1x/badge_control_panel.png /usr/syno/synoman/webman/modules/AdminCenter/images/default/1x/badge_control_panel.png.bak
cp /usr/syno/synoman/webman/modules/AdminCenter/images/default/2x/badge_control_panel.png /usr/syno/synoman/webman/modules/AdminCenter/images/default/2x/badge_control_panel.png.bak
wget -O /usr/syno/synoman/webman/modules/AdminCenter/images/default/1x/badge_control_panel.png https://raw.githubusercontent.com/xzxiaoshan/files/master/transparent.png
wget -O /usr/syno/synoman/webman/modules/AdminCenter/images/default/2x/badge_control_panel.png https://raw.githubusercontent.com/xzxiaoshan/files/master/transparent.png

# 2、处理控制面板里面系统升级的小红点(侧栏提示)
cp /usr/syno/synoman/synoSDSjslib/images/default/1x/dsm5_notification_num.png /usr/syno/synoman/synoSDSjslib/images/default/1x/dsm5_notification_num.png.bak
cp /usr/syno/synoman/synoSDSjslib/images/default/2x/dsm5_notification_num.png /usr/syno/synoman/synoSDSjslib/images/default/2x/dsm5_notification_num.png.bak
wget -O /usr/syno/synoman/synoSDSjslib/images/default/1x/dsm5_notification_num.png https://raw.githubusercontent.com/xzxiaoshan/files/master/transparent.png
wget -O /usr/syno/synoman/synoSDSjslib/images/default/2x/dsm5_notification_num.png https://raw.githubusercontent.com/xzxiaoshan/files/master/transparent.png

# 3、直接把桌面的小红点提示也都撸掉
cp /usr/syno/synoman/synoSDSjslib/images/default/1x/dsm5_badge_num.png /usr/syno/synoman/synoSDSjslib/images/default/1x/dsm5_badge_num.png.bak
cp /usr/syno/synoman/synoSDSjslib/images/default/2x/dsm5_badge_num.png /usr/syno/synoman/synoSDSjslib/images/default/2x/dsm5_badge_num.png.bak
wget -O /usr/syno/synoman/synoSDSjslib/images/default/1x/dsm5_badge_num.png https://raw.githubusercontent.com/xzxiaoshan/files/master/transparent.png
wget -O /usr/syno/synoman/synoSDSjslib/images/default/2x/dsm5_badge_num.png https://raw.githubusercontent.com/xzxiaoshan/files/master/transparent.png

修改后,直接强制刷新浏览器访问群晖即可。