Skip to content

Commit 9404810

Browse files
committed
fix
1 parent 685cf0c commit 9404810

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

BingBgForBaidu/BingBgForBaidu.user.js

Lines changed: 3 additions & 1 deletion
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.9
5+
// @version 2.3.0
66
// @description 给百度首页换上Bing的背景图,并添加背景图链接与日历组件
77
// @description:en Just change the background image of baidu.com to bing.com
88
// @author hoothin
@@ -63,6 +63,8 @@
6363
riliLink.innerHTML="<span class='title' style='text-decoration:overline;cursor:crosshair'>"+date.getFullYear()+"-"+dateMonth+"-"+dateDay+" "+"\u661f\u671f"+week[date.getDay()]+"</span>";
6464
if(icons)icons.appendChild(riliLink);
6565
iframe.onload=function(){
66+
var contentHead=this.contentWindow.document.querySelector("#head");
67+
if(contentHead && contentHead.parentNode)contentHead.parentNode.removeChild(contentHead);
6668
var $=unsafeWindow.$;
6769
var iframeDoc=$(iframe.contentDocument);
6870
var rili=$("div.op-calendar-new",iframe.contentDocument);

0 commit comments

Comments
 (0)