Skip to content

Commit 10d1ac7

Browse files
committed
fix
1 parent 833f0c3 commit 10d1ac7

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

BingBgForBaidu/BingBgForBaidu.user.js

Lines changed: 4 additions & 7 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.2.5
5+
// @version 2.2.6
66
// @description 给百度首页换上Bing的背景图,并添加背景图链接与日历组件
77
// @description:en Just change the background image of baidu.com to bing.com
88
// @author hoothin
@@ -12,6 +12,7 @@
1212
// @grant GM_addStyle
1313
// @grant unsafeWindow
1414
// @connect global.bing.com
15+
// @license MIT License
1516
// @include *://www.baidu.com/
1617
// @include *://www.baidu.com/home*
1718
// @include *://www.baidu.com/?tn=*
@@ -72,11 +73,7 @@
7273
riliLink.innerHTML="<span class='title' style='text-decoration:overline;cursor:crosshair'>"+$(".op-calendar-new-right-date",iframe.contentDocument).html()+"</span>";
7374
riliLink.onmouseover=function(){
7475
t=setTimeout(function(){
75-
if(unsafeWindow.chrome){
76-
$(iframe).show(200);
77-
}else{
78-
iframe.style.display="block";
79-
}
76+
$(iframe).show(200);
8077
if(top===0)iframeDoc.scrollTop(138);
8178
if(left===0)iframeDoc.scrollLeft(121);
8279
},500);
@@ -85,7 +82,7 @@
8582
clearTimeout(t);
8683
};
8784
iframe.onmouseout=function(){
88-
iframe.style.display="none";
85+
$(iframe).hide(500);
8986
};
9087
if(today[0].classList.contains("op-calendar-new-table-festival")){
9188
riliLink.innerHTML+="<font color='red' style='background-color:gainsboro;font-weight:bold'>("+$(".op-calendar-new-table-almanac",iframe.contentDocument).html()+")</font>";

0 commit comments

Comments
 (0)