File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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=*
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 ) ;
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>" ;
You can’t perform that action at this time.
0 commit comments