Skip to content

Commit 9ec01ef

Browse files
committed
fix
1 parent 222c7ee commit 9ec01ef

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

BingBgForBaidu/BingBgForBaidu.user.js

Lines changed: 6 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.2.2
5+
// @version 2.2.3
66
// @description 给百度首页换上Bing的背景图,并添加背景图链接与日历组件
77
// @description:en Just change the background image of baidu.com to bing.com
88
// @author hoothin
@@ -74,7 +74,11 @@
7474
t=setTimeout(function(){
7575
if(top===0)iframeDoc.scrollTop(138);
7676
if(left===0)iframeDoc.scrollLeft(121);
77-
$(iframe).show(200);
77+
if(unsafeWindow.chrome){
78+
$(iframe).show(200);
79+
}else{
80+
iframe.style.display="block";
81+
}
7882
},500);
7983
};
8084
riliLink.onmouseout=function(){

0 commit comments

Comments
 (0)