Skip to content

Commit df2f1ee

Browse files
committed
fix
1 parent 7379358 commit df2f1ee

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

BingBgForBaidu/BingBgForBaidu.user.js

Lines changed: 4 additions & 3 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.3.1
5+
// @version 2.3.2
66
// @description 给百度首页换上Bing的背景图,并添加背景图链接与日历组件
77
// @description:en Just change the background image of baidu.com to bing.com
88
// @author hoothin
@@ -68,6 +68,7 @@
6868
var $=unsafeWindow.$;
6969
var iframeDoc=$(iframe.contentDocument);
7070
var rili=$("div.op-calendar-new",iframe.contentDocument);
71+
rili.after("<br/><br/>");
7172
$("#head",iframe.contentDocument).hide();
7273
var top=rili.offset().top;
7374
var left=rili.offset().left;
@@ -78,7 +79,7 @@
7879
var height=rili.height();
7980
iframe.width=width===0?538:width;
8081
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);
8283
var t;
8384
riliLink.innerHTML="<span class='title' style='text-decoration:overline;cursor:crosshair'>"+$(".op-calendar-new-right-date",iframe.contentDocument).html()+"</span>";
8485
riliLink.onmouseover=function(){
@@ -140,7 +141,7 @@
140141
bgUrl="url(\""+bgUrl+"\")";
141142
if(!bingImg)skinContainer.style.backgroundImage = bgUrl;
142143
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");
144145
else{
145146
logo=document.querySelector("#lg>img");
146147
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

Comments
 (0)