|
2 | 2 | // @name 百Bing图 |
3 | 3 | // @name:en BingBgForBaidu |
4 | 4 | // @namespace hoothin |
5 | | -// @version 2.3.1 |
| 5 | +// @version 2.3.2 |
6 | 6 | // @description 给百度首页换上Bing的背景图,并添加背景图链接与日历组件 |
7 | 7 | // @description:en Just change the background image of baidu.com to bing.com |
8 | 8 | // @author hoothin |
|
68 | 68 | var $=unsafeWindow.$; |
69 | 69 | var iframeDoc=$(iframe.contentDocument); |
70 | 70 | var rili=$("div.op-calendar-new",iframe.contentDocument); |
| 71 | + rili.after("<br/><br/>"); |
71 | 72 | $("#head",iframe.contentDocument).hide(); |
72 | 73 | var top=rili.offset().top; |
73 | 74 | var left=rili.offset().left; |
|
78 | 79 | var height=rili.height(); |
79 | 80 | iframe.width=width===0?538:width; |
80 | 81 | iframe.height=height===0?370:height; |
81 | | - var today=$(".op-calendar-new-table-today",iframe.contentDocument); |
| 82 | + var today=$(".op-calendar-new-table-border",iframe.contentDocument); |
82 | 83 | var t; |
83 | 84 | riliLink.innerHTML="<span class='title' style='text-decoration:overline;cursor:crosshair'>"+$(".op-calendar-new-right-date",iframe.contentDocument).html()+"</span>"; |
84 | 85 | riliLink.onmouseover=function(){ |
|
140 | 141 | bgUrl="url(\""+bgUrl+"\")"; |
141 | 142 | if(!bingImg)skinContainer.style.backgroundImage = bgUrl; |
142 | 143 | var logo=document.querySelector("#s_lg_img"); |
143 | | - if(logo && logo.src)logo.src=logo.src.replace(/\/[^\/]+$/,"/logo_white.png"); |
| 144 | + if(logo && logo.src)logo.src=logo.src.replace(/\/[^\/]+\.png$/,"/logo_white.png"); |
144 | 145 | else{ |
145 | 146 | logo=document.querySelector("#lg>img"); |
146 | 147 | if(logo && logo.src)logo.src=logo.src.replace(/.*\/img\/bd_logo1\.png/,"//ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white.png"); |
|
0 commit comments