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