Skip to content

Commit 95f3d61

Browse files
committed
fix
1 parent 580fddb commit 95f3d61

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

BingBgForBaidu/BingBgForBaidu.user.js

Lines changed: 3 additions & 3 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.2
5+
// @version 2.3.3
66
// @description 给百度首页换上Bing的背景图,并添加背景图链接与日历组件
77
// @description:en Just change the background image of baidu.com to bing.com
88
// @author hoothin
@@ -79,7 +79,7 @@
7979
var height=rili.height();
8080
iframe.width=width===0?538:width;
8181
iframe.height=height===0?370:height;
82-
var today=$(".op-calendar-new-table-border",iframe.contentDocument);
82+
var today=$(".op-calendar-new-table-today",iframe.contentDocument);
8383
var t;
8484
riliLink.innerHTML="<span class='title' style='text-decoration:overline;cursor:crosshair'>"+$(".op-calendar-new-right-date",iframe.contentDocument).html()+"</span>";
8585
riliLink.onmouseover=function(){
@@ -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'>("+$(".op-calendar-new-table-almanac",today).html()+")</font>";
99+
riliLink.innerHTML+=" <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)