Skip to content

Commit c60270f

Browse files
committed
fix
1 parent 95f3d61 commit c60270f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

BingBgForBaidu/BingBgForBaidu.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name 百Bing图
33
// @name:en BingBgForBaidu
44
// @namespace hoothin
5-
// @version 2.3.3
5+
// @version 2.3.4
66
// @description 给百度首页换上Bing的背景图,并添加背景图链接与日历组件
77
// @description:en Just change the background image of baidu.com to bing.com
88
// @author hoothin
@@ -96,7 +96,7 @@
9696
$(iframe).hide(500);
9797
};
9898
if(today[0].classList.contains("op-calendar-new-table-festival")){
99-
riliLink.innerHTML+=" <font color='#FFFF66' style='background-color:#e02d2d;font-weight:bold'>("+today[0].title+")</font>";
99+
riliLink.innerHTML+=today[0].title?" <font color='#FFFF66' style='background-color:#e02d2d;font-weight:bold'>("+today[0].title+")</font>":"";
100100
riliLink.title=today[0].title;
101101
}
102102
};

0 commit comments

Comments
 (0)