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.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
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 ( ) {
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 } ;
You can’t perform that action at this time.
0 commit comments